]> spindle.queued.net Git - midori/commitdiff
Use bookmark/ folder-new in bookmark panel
authorNiels Avonds <niels.avonds@gmail.com>
Wed, 11 Jul 2012 16:36:58 +0000 (18:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 11 Jul 2012 16:41:18 +0000 (18:41 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/940536
midori/midori-app.c
midori/midori-stock.h
panels/midori-bookmarks.c

index 1864279545e97cacaa30dc8f6b38d4e0e80707d3..0215a8f502dcb463931715a20e1d9cd34126c05c 100644 (file)
@@ -1423,6 +1423,7 @@ midori_app_setup (gchar** argument_vector)
         { STOCK_PLUGINS,      N_("Netscape p_lugins") },
         { STOCK_USER_TRASH,   N_("_Closed Tabs") },
         { STOCK_WINDOW_NEW,   N_("New _Window") },
+        { STOCK_FOLDER_NEW,   N_("New _Folder") },
     };
 
     /* libSoup uses threads, therefore if WebKit is built with libSoup
index bd7287b2824b9c9cf98a1e562cc8bfbfff4e76e4..3157c2c1010af29402e3acad2660702bd69656ff 100644 (file)
@@ -30,5 +30,6 @@
 #define STOCK_TAB_NEW            "tab-new"
 #define STOCK_USER_TRASH         "user-trash"
 #define STOCK_WINDOW_NEW         "window-new"
+#define STOCK_FOLDER_NEW         "folder-new"
 
 #endif /* !__MIDORI_STOCK_H__ */
index 2f9ef4cdd7e61d429a969ecc48ca49b65944f1c3..2c9213e3c5c0a4528082bf6b0d62bdabfe7a95a3 100644 (file)
@@ -521,7 +521,7 @@ midori_bookmarks_get_toolbar (MidoriViewable* viewable)
         gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_BUTTON);
         gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
         bookmarks->toolbar = toolbar;
-        toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_ADD);
+        toolitem = gtk_tool_button_new_from_stock (STOCK_BOOKMARK_ADD);
         gtk_widget_set_name (GTK_WIDGET (toolitem), "BookmarkAdd");
         gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem),
                                      _("Add a new bookmark"));
@@ -552,7 +552,7 @@ midori_bookmarks_get_toolbar (MidoriViewable* viewable)
         gtk_tool_item_set_expand (toolitem, TRUE);
         gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
         gtk_widget_show (GTK_WIDGET (toolitem));
-        toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_DIRECTORY);
+        toolitem = gtk_tool_button_new_from_stock (STOCK_FOLDER_NEW);
         gtk_widget_set_name (GTK_WIDGET (toolitem), "BookmarkFolderAdd");
         gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem),
                                      _("Add a new folder"));