changeset 2625:3b73a30e2e9f

Addl #444: Change format for Add button menu https://github.com/BestImageViewer/geeqie/issues/444 For Add button show the action icon instead of a Plus sign.
author Colin Clark <colin.clark@cclark.uk>
date Tue, 10 Oct 2017 19:02:41 +0100
parents af19f970be03
children 9d3bbd00cf4d
files src/toolbar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/toolbar.c	Tue Oct 10 17:02:01 2017 +0100
+++ b/src/toolbar.c	Tue Oct 10 19:02:41 2017 +0100
@@ -352,7 +352,7 @@
 	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 @@
 		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));