aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-26 22:10:12 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-26 22:10:12 +0800
commit27bb32c53abdd9adafbd25202cad8e9bd6319b51 (patch)
treef6ba8f048a62306e3d195e774663048c1a021b79 /widgets/misc/e-search-bar.c
parent05edabda2e3ea9c2b4c6790e6bb4912c8387977f (diff)
downloadgsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.gz
gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.tar.zst
gsoc2013-evolution-27bb32c53abdd9adafbd25202cad8e9bd6319b51.zip
Added icons to search menu.
svn path=/trunk/; revision=31909
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c9
1 files changed, 6 insertions, 3 deletions
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);
}