diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-11-15 21:35:38 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-11-15 21:35:38 +0800 |
commit | aa6924e780e8755002d638cfa4f28eef14dd8152 (patch) | |
tree | 7f4566bfd6d283290ea8e9e991102a66e108b9f8 /src/pdm-dialog.c | |
parent | df708b818ae51b9e76a47504534104fa5b96e880 (diff) | |
download | gsoc2013-epiphany-aa6924e780e8755002d638cfa4f28eef14dd8152.tar.gz gsoc2013-epiphany-aa6924e780e8755002d638cfa4f28eef14dd8152.tar.zst gsoc2013-epiphany-aa6924e780e8755002d638cfa4f28eef14dd8152.zip |
Don't put the prefs/pdm dialogue over all windows. Make the add-language
2005-11-15 Christian Persch <chpe@cvs.gnome.org>
* data/glade/epiphany.glade:
* data/glade/prefs-dialog.glade:
* data/glade/print.glade:
* src/pdm-dialog.c: (pdm_dialog_response_cb), (pdm_dialog_init):
* src/prefs-dialog.c: (setup_add_language_dialog),
(prefs_dialog_init):
Don't put the prefs/pdm dialogue over all windows. Make the
add-language dialogue modal to the prefs dialogue.
Diffstat (limited to 'src/pdm-dialog.c')
-rwxr-xr-x | src/pdm-dialog.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 6fb5e444a..69482153f 100755 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -988,17 +988,13 @@ pdm_dialog_response_cb (GtkDialog *widget, int response, PdmDialog *dialog) { - switch (response) + if (response == GTK_RESPONSE_HELP) { - case GTK_RESPONSE_CLOSE: - g_object_unref (dialog); - break; - case GTK_RESPONSE_HELP: - pdm_dialog_show_help (dialog); - break; - default: - break; + pdm_dialog_show_help (dialog); + return; } + + g_object_unref (dialog); } static void pdm_dialog_init (PdmDialog *dialog) @@ -1019,6 +1015,9 @@ pdm_dialog_init (PdmDialog *dialog) properties[PROP_NOTEBOOK].id, ¬ebook, NULL); + ephy_gui_ensure_window_group (GTK_WINDOW (window)); + + gtk_window_set_role (GTK_WINDOW (window), "epiphany-cookie-manager"); gtk_window_set_icon_name (GTK_WINDOW (window), "web-browser"); g_signal_connect (window, "response", |