[gnome-packagekit/gnome-2-28] Always show the search type menu icons. Fixes rh#530595
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit/gnome-2-28] Always show the search type menu icons. Fixes rh#530595
- Date: Tue, 27 Oct 2009 10:37:52 +0000 (UTC)
commit 8f90b47c029447a179f8a159c51f5c6d7f0febc0
Author: Richard Hughes <richard hughsie com>
Date: Tue Oct 27 10:36:03 2009 +0000
Always show the search type menu icons. Fixes rh#530595
src/gpk-application.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index d998679..23f5b04 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2452,6 +2452,7 @@ gpk_application_entry_text_icon_press_cb (GtkEntry *entry, GtkEntryIconPosition
item = gtk_image_menu_item_new_with_mnemonic (_("Search by name"));
image = gtk_image_new_from_stock (GTK_STOCK_FIND, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
g_signal_connect (G_OBJECT (item), "activate",
G_CALLBACK (gpk_application_menu_search_by_name), application);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -2462,6 +2463,7 @@ gpk_application_entry_text_icon_press_cb (GtkEntry *entry, GtkEntryIconPosition
item = gtk_image_menu_item_new_with_mnemonic (_("Search by description"));
image = gtk_image_new_from_stock (GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
g_signal_connect (G_OBJECT (item), "activate",
G_CALLBACK (gpk_application_menu_search_by_description), application);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -2472,6 +2474,7 @@ gpk_application_entry_text_icon_press_cb (GtkEntry *entry, GtkEntryIconPosition
item = gtk_image_menu_item_new_with_mnemonic (_("Search by file name"));
image = gtk_image_new_from_stock (GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
g_signal_connect (G_OBJECT (item), "activate",
G_CALLBACK (gpk_application_menu_search_by_file), application);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]