[nautilus/gnome-3-16] nautilus-view: allow folders to be opened in other app



commit 484974a2a7daf0c4468a1c18fc00c071251c1afa
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed May 13 13:14:16 2015 +0200

    nautilus-view: allow folders to be opened in other app
    
    So the user can open a folder in a different app.
    This is useful in cases like IDEs or text editors
    for entire projects.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691479

 src/nautilus-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index f8d49b3..d7675a8 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -5975,7 +5975,9 @@ real_update_actions_state (NautilusView *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);
+                                    app != NULL ||
+                                     (selection_count > 0 &&
+                                      nautilus_file_is_directory (NAUTILUS_FILE (selection->data))));
 
        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]