Don't open most windows at mouse position
This commit is contained in:
parent
8028bb7f82
commit
7bc3317eeb
@ -1404,7 +1404,7 @@ mg_link_gentab (chan *ch, GtkWidget *box)
|
||||
win = gtkutil_window_new (g_object_get_data (G_OBJECT (box), "title"), "",
|
||||
GPOINTER_TO_INT (g_object_get_data (G_OBJECT (box), "w")),
|
||||
GPOINTER_TO_INT (g_object_get_data (G_OBJECT (box), "h")),
|
||||
3);
|
||||
2);
|
||||
/* so it doesn't try to chan_remove (there's no tab anymore) */
|
||||
g_object_steal_data (G_OBJECT (box), "ch");
|
||||
gtk_container_set_border_width (GTK_CONTAINER (box), 0);
|
||||
@ -3643,7 +3643,7 @@ mg_create_generic_tab (char *name, char *title, int force_toplevel,
|
||||
|
||||
if (force_toplevel || !prefs.hex_gui_tab_utils)
|
||||
{
|
||||
win = gtkutil_window_new (title, name, width, height, 3);
|
||||
win = gtkutil_window_new (title, name, width, height, 2);
|
||||
vbox = gtk_vbox_new (0, 0);
|
||||
*vbox_ret = vbox;
|
||||
gtk_container_add (GTK_CONTAINER (win), vbox);
|
||||
|
@ -1650,7 +1650,6 @@ servlist_open_edit (GtkWidget *parent, ircnet *net)
|
||||
snprintf (buf, sizeof (buf), _(DISPLAY_NAME": Edit %s"), net->name);
|
||||
gtk_window_set_title (GTK_WINDOW (editwindow), buf);
|
||||
gtk_window_set_default_size (GTK_WINDOW (editwindow), netedit_win_width, netedit_win_height);
|
||||
gtk_window_set_position (GTK_WINDOW (editwindow), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_transient_for (GTK_WINDOW (editwindow), GTK_WINDOW (parent));
|
||||
gtk_window_set_modal (GTK_WINDOW (editwindow), TRUE);
|
||||
gtk_window_set_type_hint (GTK_WINDOW (editwindow), GDK_WINDOW_TYPE_HINT_DIALOG);
|
||||
@ -1916,7 +1915,6 @@ servlist_open_networks (void)
|
||||
gtk_container_set_border_width (GTK_CONTAINER (servlist), 4);
|
||||
gtk_window_set_title (GTK_WINDOW (servlist), _(DISPLAY_NAME": Network List"));
|
||||
gtk_window_set_default_size (GTK_WINDOW (servlist), netlist_win_width, netlist_win_height);
|
||||
gtk_window_set_position (GTK_WINDOW (servlist), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_role (GTK_WINDOW (servlist), "servlist");
|
||||
gtk_window_set_type_hint (GTK_WINDOW (servlist), GDK_WINDOW_TYPE_HINT_DIALOG);
|
||||
if (current_sess)
|
||||
|
@ -2272,7 +2272,7 @@ setup_window_open (void)
|
||||
{
|
||||
GtkWidget *wid, *win, *vbox, *hbox, *hbbox;
|
||||
|
||||
win = gtkutil_window_new (_(DISPLAY_NAME": Preferences"), "prefs", 0, 0, 3);
|
||||
win = gtkutil_window_new (_(DISPLAY_NAME": Preferences"), "prefs", 0, 0, 2);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 5);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
|
||||
|
Loading…
Reference in New Issue
Block a user