diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-06-22 02:18:14 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-06-22 02:18:14 +0800 |
commit | 54d27764848058ad591478a56a67ec49bee20efe (patch) | |
tree | e220c19afee7d26e49f05fcb336eca5ee367ef43 /src/bookmarks/ephy-new-bookmark.c | |
parent | 157bf334e0f70f7bdea8c19fd310505449291677 (diff) | |
download | gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar.gz gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar.bz2 gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar.lz gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar.xz gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.tar.zst gsoc2013-epiphany-54d27764848058ad591478a56a67ec49bee20efe.zip |
Add a New topic button to the new bookmark dialog.
2004-06-21 Marco Pesenti Gritti <marco@gnome.org>
* src/bookmarks/ephy-new-bookmark.c: (response_cb),
(ephy_new_bookmark_construct):
* src/bookmarks/ephy-topics-selector.c: (renderer_edited_cb),
(renderer_editing_canceled_cb), (ephy_topics_build_ui),
(ephy_topics_selector_new), (ephy_topics_selector_new_topic):
* src/bookmarks/ephy-topics-selector.h:
Add a New topic button to the new bookmark dialog.
Diffstat (limited to 'src/bookmarks/ephy-new-bookmark.c')
-rw-r--r-- | src/bookmarks/ephy-new-bookmark.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c index e90bae9f5..341fdd2c5 100644 --- a/src/bookmarks/ephy-new-bookmark.c +++ b/src/bookmarks/ephy-new-bookmark.c @@ -54,6 +54,11 @@ static void ephy_new_bookmark_get_property (GObject *object, #define EPHY_NEW_BOOKMARK_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_NEW_BOOKMARK, EphyNewBookmarkPrivate)) +enum +{ + RESPONSE_NEW_TOPIC +}; + struct EphyNewBookmarkPrivate { EphyBookmarks *bookmarks; @@ -176,6 +181,10 @@ response_cb (EphyNewBookmark *new_bookmark, int response_id, gpointer user_data) { + EphyTopicsSelector *selector; + + selector = EPHY_TOPICS_SELECTOR (new_bookmark->priv->topics_selector); + switch (response_id) { case GTK_RESPONSE_HELP: @@ -183,6 +192,9 @@ response_cb (EphyNewBookmark *new_bookmark, "epiphany", "to-create-new-bookmark"); break; + case RESPONSE_NEW_TOPIC: + ephy_topics_selector_new_topic (selector); + break; /* For both OK and Cancel we want to destroy the dialog */ case GTK_RESPONSE_OK: ephy_new_bookmark_add (new_bookmark); @@ -283,6 +295,9 @@ ephy_new_bookmark_construct (EphyNewBookmark *editor) GTK_STOCK_HELP, GTK_RESPONSE_HELP); gtk_dialog_add_button (GTK_DIALOG (editor), + _("_New Topic"), + RESPONSE_NEW_TOPIC); + gtk_dialog_add_button (GTK_DIALOG (editor), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); gtk_dialog_add_button (GTK_DIALOG (editor), |