diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-04-26 22:10:12 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-04-26 22:10:12 +0800 |
commit | 27bb32c53abdd9adafbd25202cad8e9bd6319b51 (patch) | |
tree | f6ba8f048a62306e3d195e774663048c1a021b79 | |
parent | 05edabda2e3ea9c2b4c6790e6bb4912c8387977f (diff) | |
download | gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.gz gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.bz2 gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.lz gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.xz gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.zst gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.zip |
Added icons to search menu.
svn path=/trunk/; revision=31909
-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); } |