From 90501400ad4d1901cca48c1f4435f1e50f6b851b Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 12 Sep 2012 18:06:39 +0200 Subject: Focus windows when opening new links in tabs If someone requests a link to be opened by ephy in an already running instance, and that link is opened in a new tab (either because of our settings or because -n/--new-tab was passed), the window where this happened will not be presented, so it might go unnoticed. Fix this by presenting the windows where new tabs are opened through the open_uris mechanism in EphySession. https://bugzilla.gnome.org/show_bug.cgi?id=641949 --- src/ephy-shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ephy-shell.c') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 5eb3dfc5e..7bd305ea2 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -821,6 +821,9 @@ ephy_shell_new_tab_full (EphyShell *shell, } } + if (flags & EPHY_NEW_TAB_PRESENT_WINDOW) + gtk_window_present_with_time (GTK_WINDOW (window), user_time); + return embed; } -- cgit v1.2.3