From 27bb32c53abdd9adafbd25202cad8e9bd6319b51 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 26 Apr 2006 14:10:12 +0000 Subject: Added icons to search menu. svn path=/trunk/; revision=31909 --- widgets/misc/e-search-bar.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'widgets/misc/e-search-bar.c') diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index 5d210d5fab..5dc7817583 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -550,6 +550,7 @@ static void append_xml_menu_item (GString *xml, const char *name, const char *label, + const char *stock, const char *verb, const char *accelerator) { @@ -562,6 +563,8 @@ append_xml_menu_item (GString *xml, if (accelerator != NULL) g_string_append_printf (xml, " accel=\"%s\"", accelerator); + if (stock != NULL) + g_string_append_printf (xml, " pixtype=\"stock\" pixname=\"%s\"", stock); g_string_append (xml, "/>"); } @@ -591,8 +594,8 @@ setup_bonobo_menus (ESearchBar *esb) g_string_append (xml, ""); - append_xml_menu_item (xml, "FindNow", _("_Find Now"), "ESearchBar:FindNow", NULL); - append_xml_menu_item (xml, "Clear", _("_Clear"), "ESearchBar:Clear", "*Control**Shift*q"); + append_xml_menu_item (xml, "FindNow", _("_Find Now"), "gtk-find", "ESearchBar:FindNow", NULL); + append_xml_menu_item (xml, "Clear", _("_Clear"), "gtk-clear", "ESearchBar:Clear", "*Control**Shift*q"); for (p = esb->menu_items; p != NULL; p = p->next) { const ESearchBarItem *item; @@ -605,7 +608,7 @@ setup_bonobo_menus (ESearchBar *esb) if (item->text == NULL) g_string_append (xml, ""); else - append_xml_menu_item (xml, verb_name, item->text, verb_name, NULL); + append_xml_menu_item (xml, verb_name, item->text, NULL, verb_name, NULL); g_free (verb_name); } -- cgit