aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-05-13 22:19:07 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-05-13 22:19:07 +0800
commitacddd88152e9ffbafda64913ce5173d2648aa4c3 (patch)
treee5c0bdaabf8264db5306b0ea5fd8b8b1f9fc1e70 /src/bookmarks
parentbacb58f2fda5bef60b55500aa79e17be7aa8a384 (diff)
downloadgsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar.gz
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar.bz2
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar.lz
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar.xz
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.tar.zst
gsoc2013-epiphany-acddd88152e9ffbafda64913ce5173d2648aa4c3.zip
Get rid of the unneeded convenience callback since no one is try to make
2003-05-13 David Bordoley <bordoley@msu.edu> * src/ephy-history-window.c: (cmd_bookmark_page): * src/popup-commands.c: (popup_cmd_bookmark_link): * src/window-commands.c: (window_cmd_file_bookmark_page): * src/bookmarks/ephy-new-bookmark.c: (response_cb), (ephy_new_bookmark_response_cb): * src/bookmarks/ephy-new-bookmark.h: Get rid of the unneeded convenience callback since no one is try to make the new bookmark dialog modal anymore.
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 */