summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-07-11 22:48:16 -0700
committerCorey Berla <corey@berla.me>2022-07-16 08:13:19 -0700
commit4a7d4c2965c3d11395b43dc44a4e8d6779b1e931 (patch)
treeade5fb2b076a95b3ff45b828b01ae1e887233a74
parentaa1f6d50c4b620a92e6eb70dc446b451c9e3d80e (diff)
downloadnautilus-4a7d4c2965c3d11395b43dc44a4e8d6779b1e931.tar.gz
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.
-rw-r--r--src/nautilus-pathbar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 7d08b2bdf..d130d961e 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -155,7 +155,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);
}
}
@@ -619,7 +620,7 @@ on_click_gesture_pressed (GtkGestureClick *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;