[gnome-packagekit] Always show the search type menu icons. Fixes rh#530595



commit eee739d66856a0031d73ae66d2cf5a6db8b3b6f9
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 885b1d7..658d8ee 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2690,6 +2690,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);
@@ -2700,6 +2701,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);
@@ -2710,6 +2712,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]