[nautilus/gnome-42] pathbar: Don't make new tab active



commit 182e86f1cc0be95d4408f33614b0f3fa416c0abb
Author: Corey Berla <corey berla me>
Date:   Mon Jul 11 22:48:16 2022 -0700

    pathbar: Don't make new tab active
    
    Opening a new tab from the main view and side bar is set with
    NAUTILUS_OPEN_FLAG_DONT_MAKE_ACTIVE.  Prior to
    022867e3d3370560f2c6c07f90ad5fdfd7916d50 this was the same for tabs opened
    from the pathbar.  It appears that the change was unintentional
    (GTK Open Flags don't have a "don't make active" flag).
    
    Set new tabs as not active from the path bar.

 src/nautilus-pathbar.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index d7dd33f24..62fbf20ef 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -160,7 +160,8 @@ action_pathbar_open_item_new_tab (GSimpleAction *action,
 
     if (location)
     {
-        g_signal_emit (user_data, path_bar_signals[OPEN_LOCATION], 0, location, NAUTILUS_OPEN_FLAG_NEW_TAB);
+        g_signal_emit (user_data, path_bar_signals[OPEN_LOCATION], 0, location,
+                       NAUTILUS_OPEN_FLAG_NEW_TAB | NAUTILUS_OPEN_FLAG_DONT_MAKE_ACTIVE);
         g_object_unref (location);
     }
 }
@@ -696,7 +697,7 @@ on_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
             {
                 g_signal_emit (self, path_bar_signals[OPEN_LOCATION], 0,
                                button_data->path,
-                               NAUTILUS_OPEN_FLAG_NEW_TAB);
+                               NAUTILUS_OPEN_FLAG_NEW_TAB | NAUTILUS_OPEN_FLAG_DONT_MAKE_ACTIVE);
             }
         }
         break;


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