[nautilus/gnome-3-20] files-view: add Open With App menu item for all items



commit cedea77e0fe63aeca7239026f970e5a528b3dc3f
Author: aki237 <akilan1997 gmail com>
Date:   Sun Mar 6 23:17:11 2016 +0530

    files-view: add Open With App menu item for all items
    
    The menu item "Open With Application" is not available for most files.
    This is a valid menu item for files and folders of all types where the
    selected item can be opened in some other application.
    
    To fix it : The condition in the "src/nautilus-files-view.c" that adds
    open with application action has been modified so that this menu item
    appears in the context menu for all cases (except when the right click is
    triggered in empty space)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=566477

 src/nautilus-files-view.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 8043a84..15ce548 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -6390,9 +6390,7 @@ real_update_actions_state (NautilusFilesView *view)
         action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
                                              "open-with-other-application");
         g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
-                                     app != NULL ||
-                                     (selection_count > 0 &&
-                                      nautilus_file_is_directory (NAUTILUS_FILE (selection->data))));
+                                     selection_count > 0);
 
         action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
                                              "open-item-new-tab");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]