From c968c68cabc319896ad4d2096940c9a34d4c13cd Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Sun, 9 Dec 2012 15:25:37 +0100 Subject: 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 --- src/ephy-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ephy-session.c') 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); -- cgit v1.2.3