aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-new-bookmark.c22
-rw-r--r--src/bookmarks/ephy-new-bookmark.h7
2 files changed, 4 insertions, 25 deletions
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c
index db69e4ee7..332e737bd 100644
--- a/src/bookmarks/ephy-new-bookmark.c
+++ b/src/bookmarks/ephy-new-bookmark.c
@@ -185,10 +185,12 @@ response_cb (EphyNewBookmark *new_bookmark,
"epiphany",
"to-create-new-bookmark");
break;
- case GTK_RESPONSE_CANCEL:
- break;
+ /* For both OK and Cancel we want to destroy the dialog */
case GTK_RESPONSE_OK:
ephy_new_bookmark_add (new_bookmark);
+ case GTK_RESPONSE_CANCEL:
+ default:
+ gtk_widget_destroy (GTK_WIDGET (new_bookmark));
break;
}
}
@@ -465,19 +467,3 @@ ephy_new_bookmark_get_id (EphyNewBookmark *bookmark)
{
return bookmark->priv->id;
}
-
-/* Convenience function for callers */
-
-void
-ephy_new_bookmark_response_cb (EphyNewBookmark *bookmark,
- int response_id,
- gpointer user_data)
-{
- switch (response_id)
- {
- case GTK_RESPONSE_CANCEL:
- case GTK_RESPONSE_OK:
- gtk_widget_destroy (GTK_WIDGET (bookmark));
- break;
- }
-}
diff --git a/src/bookmarks/ephy-new-bookmark.h b/src/bookmarks/ephy-new-bookmark.h
index fae8e3b7c..15b3c2c1b 100644
--- a/src/bookmarks/ephy-new-bookmark.h
+++ b/src/bookmarks/ephy-new-bookmark.h
@@ -69,13 +69,6 @@ void ephy_new_bookmark_set_smarturl (EphyNewBookmark *bookmark,
gulong ephy_new_bookmark_get_id (EphyNewBookmark *bookmark);
-/* Convenience function for callers */
-
-void ephy_new_bookmark_response_cb (EphyNewBookmark *bookmark,
- int response_id,
- gpointer user_data);
-
-
G_END_DECLS
#endif /* EPHY_NEW_BOOKMARK_H */