aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-toolbar-editor.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-08-08 04:13:15 +0800
committerChristian Persch <chpe@src.gnome.org>2006-08-08 04:13:15 +0800
commit33c1c3a2e91df54dc70f0c11993bfaad9c46bddb (patch)
tree4c8d70119ec39845906c33b0f9760456d60fc6cf /src/ephy-toolbar-editor.c
parent60ffebd0483ae915b4bfd2ef0675295125488746 (diff)
downloadgsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar.gz
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar.bz2
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar.lz
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar.xz
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.tar.zst
gsoc2013-epiphany-33c1c3a2e91df54dc70f0c11993bfaad9c46bddb.zip
Make sure to destroy the dialogue in all cases.
2006-08-07 Christian Persch <chpe@cvs.gnome.org> * src/ephy-toolbar-editor.c:(ephy_toolbar_editor_response): Make sure to destroy the dialogue in all cases.
Diffstat (limited to 'src/ephy-toolbar-editor.c')
-rw-r--r--src/ephy-toolbar-editor.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ephy-toolbar-editor.c b/src/ephy-toolbar-editor.c
index e0ca065f3..da43d8f0e 100644
--- a/src/ephy-toolbar-editor.c
+++ b/src/ephy-toolbar-editor.c
@@ -134,22 +134,22 @@ combo_changed_cb (GtkComboBox *combo,
static void
ephy_toolbar_editor_response (GtkDialog *dialog,
- gint response_id)
+ gint response)
{
EphyToolbarEditorPrivate *priv = EPHY_TOOLBAR_EDITOR (dialog)->priv;
- switch (response_id)
+ if (response == RESPONSE_ADD_TOOLBAR)
{
- case GTK_RESPONSE_CLOSE:
- gtk_widget_destroy (GTK_WIDGET (dialog));
- break;
- case RESPONSE_ADD_TOOLBAR:
- egg_toolbars_model_add_toolbar (priv->model, -1, "UserCreated");
- break;
- case GTK_RESPONSE_HELP:
- ephy_gui_help (GTK_WINDOW (dialog), "epiphany", "to-edit-toolbars");
- break;
+ egg_toolbars_model_add_toolbar (priv->model, -1, "UserCreated");
+ return;
}
+ else if (response == GTK_RESPONSE_HELP)
+ {
+ ephy_gui_help (GTK_WINDOW (dialog), "epiphany", "to-edit-toolbars");
+ return;
+ }
+
+ gtk_widget_destroy (GTK_WIDGET (dialog));
}
static void