diff options
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), |