diff options
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 2ec678c6b..1b407519e 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -785,7 +785,7 @@ static EphyDialog * setup_add_language_dialog (PrefsDialog *pd) { EphyDialog *dialog; - GtkWidget *window; + GtkWidget *window, *parent; GtkListStore *store; GtkTreeModel *sortmodel; GtkTreeView *treeview; @@ -795,10 +795,10 @@ setup_add_language_dialog (PrefsDialog *pd) GtkTreeIter iter; int i; - window = ephy_dialog_get_control (EPHY_DIALOG (pd), properties[WINDOW_PROP].id); + parent = ephy_dialog_get_control (EPHY_DIALOG (pd), properties[WINDOW_PROP].id); dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_DIALOG, - "parent-window", window, + "parent-window", parent, "default-width", 260, "default-height", 230, NULL)); @@ -837,6 +837,9 @@ setup_add_language_dialog (PrefsDialog *pd) add_lang_props[LANGUAGE_DIALOG].id, &window, NULL); + gtk_window_group_add_window (GTK_WINDOW (parent)->group, GTK_WINDOW (window)); + gtk_window_set_modal (GTK_WINDOW (window), TRUE); + gtk_tree_view_set_reorderable (GTK_TREE_VIEW (treeview), FALSE); gtk_tree_view_set_model (treeview, sortmodel); @@ -1272,6 +1275,9 @@ prefs_dialog_init (PrefsDialog *pd) properties[CLEAR_CACHE_BUTTON_PROP].id, &clear_cache_button, NULL); + ephy_gui_ensure_window_group (GTK_WINDOW (window)); + + gtk_window_set_role (GTK_WINDOW (window), "epiphany-preferences"); gtk_window_set_icon_name (GTK_WINDOW (window), GTK_STOCK_PREFERENCES); g_signal_connect (window, "response", |