diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2012-12-09 22:25:37 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2012-12-11 05:15:54 +0800 |
commit | c968c68cabc319896ad4d2096940c9a34d4c13cd (patch) | |
tree | d9cde42306f750303d3d35ee701fe58c5040f878 /src/ephy-session.c | |
parent | 3573116d0473da1ca51d1766d412a97185addb9d (diff) | |
download | gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar.gz gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar.bz2 gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar.lz gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar.xz gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.tar.zst gsoc2013-epiphany-c968c68cabc319896ad4d2096940c9a34d4c13cd.zip |
Append new tab on the window with most tabs in the current workspace
This change uses a different heuristic to decide on what the best window to add
a new tab is from the last window which has been interacted with, which might
even be in a different workspace, to the window with the most tabs in the
current workspace. If no window exists on the current workspace one will be
created.
Partial fix for https://bugzilla.gnome.org/show_bug.cgi?id=685976
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r-- | src/ephy-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index d761d9d33..3a0f197a3 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -261,7 +261,7 @@ session_command_open_uris (EphySession *session, g_object_ref (shell); - window = EPHY_WINDOW (gtk_application_get_active_window (GTK_APPLICATION (shell))); + window = ephy_shell_get_main_window (shell); new_windows_in_tabs = g_settings_get_boolean (EPHY_SETTINGS_MAIN, EPHY_PREFS_NEW_WINDOWS_IN_TABS); |