Addl #444: Change format for Add button menu
authorColin Clark <colin.clark@cclark.uk>
Tue, 10 Oct 2017 18:02:41 +0000 (19:02 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 10 Oct 2017 18:02:41 +0000 (19:02 +0100)
https://github.com/BestImageViewer/geeqie/issues/444

For Add button show the action icon instead of a Plus sign.

src/toolbar.c

index 9aa7348..168b401 100644 (file)
@@ -352,7 +352,7 @@ static void toolbar_menu_add_popup(GtkWidget *widget, gpointer data)
        while (list->name)
                {
                GtkWidget *item;
-               item = menu_item_add_stock(menu, list->label, GTK_STOCK_ADD,
+               item = menu_item_add_stock(menu, list->label, list->stock_id,
                                                                                G_CALLBACK(toolbarlist_add_cb), toolbarlist);
                g_object_set_data(G_OBJECT(item), "toolbar_add_name", g_strdup(list->name));
                g_object_set_data(G_OBJECT(item), "toolbar_add_label", g_strdup(list->label));
@@ -368,7 +368,7 @@ static void toolbar_menu_add_popup(GtkWidget *widget, gpointer data)
                const EditorDescription *editor = work->data;
 
                GtkWidget *item;
-               item = menu_item_add_stock(menu, editor->name, GTK_STOCK_ADD,
+               item = menu_item_add_stock(menu, editor->name, editor->icon,
                                                                                G_CALLBACK(toolbarlist_add_cb), toolbarlist);
                g_object_set_data(G_OBJECT(item), "toolbar_add_name", g_strdup(editor->key));
                g_object_set_data(G_OBJECT(item), "toolbar_add_label", g_strdup(editor->name));