diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 5444ec97d9..99c7dacb90 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,4 +1,9 @@ 2006-04-26 Srinivasa Ragavan <sragavan@novell.com> + + * e-search-bar.c: (append_xml_menu_item), (setup_bonobo_menus): Added + icons to search menu. + +2006-04-26 Srinivasa Ragavan <sragavan@novell.com> * e-search-bar.c: (add_button), (e_search_bar_construct): Adding icons for find and clear buttons. (Patch from PR Suman) 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, "<placeholder name=\"SearchBar\">"); - 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, "<separator/>"); 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); } |