Commit 035cb785 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

region: Parent dialogues properly

parent 0c8dd1ae
......@@ -338,11 +338,11 @@ show_selected_layout (GtkWidget * button, GtkBuilder * dialog)
gchar **layouts_list = xkb_layouts_get_selected_list ();
const gchar *id = layouts_list[idx];
char *descr = xkb_layout_description_utf8 (id);
GtkWidget *parent = WID ("region_dialog");
GtkWidget *parent = WID ("region_notebook");
GtkWidget *popup =
gkbd_keyboard_drawing_new_dialog (idx, descr);
gtk_window_set_transient_for (GTK_WINDOW (popup),
GTK_WINDOW (parent));
GTK_WINDOW (gtk_widget_get_toplevel (parent)));
g_strfreev (layouts_list);
g_free (descr);
}
......
......@@ -423,8 +423,7 @@ xkb_layout_choose (GtkBuilder * dialog)
GtkWidget *toplevel = NULL;
gtk_window_set_transient_for (GTK_WINDOW (chooser),
GTK_WINDOW (WID
("region_dialog")));
GTK_WINDOW (gtk_widget_get_toplevel (WID ("region_notebook"))));
xkb_layout_chooser_available_layouts_fill (chooser_dialog,
"xkb_countries_available",
......
......@@ -314,8 +314,7 @@ choose_model (GtkBuilder * dialog)
NULL);
chooser = CWID ("xkb_model_chooser");
gtk_window_set_transient_for (GTK_WINDOW (chooser),
GTK_WINDOW (WID
("region_dialog")));
GTK_WINDOW (gtk_widget_get_toplevel (WID ("region_notebook"))));
current_model_name = g_settings_get_string (xkb_keyboard_settings, GKBD_KEYBOARD_CONFIG_KEY_MODEL);
prepare_vendors_list (chooser_dialog);
......
......@@ -451,7 +451,7 @@ xkb_options_popup_dialog (GtkBuilder * dialog)
chooser = CWID ("xkb_options_dialog");
gtk_window_set_transient_for (GTK_WINDOW (chooser),
GTK_WINDOW (WID ("region_dialog")));
GTK_WINDOW (gtk_widget_get_toplevel (WID ("region_notebook"))));
xkb_options_load_options (chooser_dialog);
g_signal_connect (chooser, "response",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment