diff options
author | Razvan Chitu <razvan.ch95@gmail.com> | 2016-03-24 23:10:19 +0200 |
---|---|---|
committer | Razvan Chitu <razvan.ch95@gmail.com> | 2016-03-29 12:48:22 +0300 |
commit | 9028e3322f041d06e54f350d97831b6fb3fea9f7 (patch) | |
tree | 341ad80201a1be6dce4e8b3d3759d37e9e34be17 /src/nautilus-places-view.c | |
parent | 4f7a7f9140809d43a6ac494c16d0edb090325319 (diff) | |
download | nautilus-9028e3322f041d06e54f350d97831b6fb3fea9f7.tar.gz |
do not switch focus to new tabs
In Nautilus, when a location is opened in a new tab, the new tab gets
automatically focused. This behavior is not consistent with other tab-based
applications, such as browsers - Epiphany, Firefox, Chromium to name a few. It
is also a regression, since this behavior was not present in 3.14. In order to
fix this, set a flag so the new tab is not made active.
https://bugzilla.gnome.org/show_bug.cgi?id=764035
Diffstat (limited to 'src/nautilus-places-view.c')
-rw-r--r-- | src/nautilus-places-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c index b80549023..1a014953b 100644 --- a/src/nautilus-places-view.c +++ b/src/nautilus-places-view.c @@ -65,7 +65,8 @@ open_location_cb (NautilusPlacesView *view, switch (open_flags) { case GTK_PLACES_OPEN_NEW_TAB: - flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB; + flags = NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB | + NAUTILUS_WINDOW_OPEN_FLAG_DONT_MAKE_ACTIVE; break; case GTK_PLACES_OPEN_NEW_WINDOW: |