[nautilus] pathbar: Don't make new tab active
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pathbar: Don't make new tab active
- Date: Sat, 16 Jul 2022 15:38:11 +0000 (UTC)
commit 4a7d4c2965c3d11395b43dc44a4e8d6779b1e931
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 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]