[nautilus] Always show app icon for open-with in the popup menu as in the normal menu
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Always show app icon for open-with in the popup menu as in the normal menu
- Date: Wed, 26 Aug 2009 12:31:03 +0000 (UTC)
commit 064086ef68a0692ac9050b7a0d3ded4a836c8180
Author: Marcus Carlson <marcus mejlamej nu>
Date: Wed Aug 26 14:26:44 2009 +0200
Always show app icon for open-with in the popup menu as in the normal menu
Fixes bug #591663.
src/file-manager/fm-directory-view.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 68e9aa3..ed5cc7c 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -8457,6 +8457,14 @@ real_update_menus (FMDirectoryView *view)
gtk_image_menu_item_set_always_show_image (
GTK_IMAGE_MENU_ITEM (menuitem), app_icon != NULL);
+ menuitem = gtk_ui_manager_get_widget (
+ nautilus_window_info_get_ui_manager (view->details->window),
+ FM_DIRECTORY_VIEW_POPUP_PATH_OPEN);
+
+ /* Only force displaying the icon if it is an application icon */
+ gtk_image_menu_item_set_always_show_image (
+ GTK_IMAGE_MENU_ITEM (menuitem), app_icon != NULL);
+
if (app_icon == NULL) {
app_icon = g_themed_icon_new (GTK_STOCK_OPEN);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]