aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-09-13 00:06:39 +0800
committerXan Lopez <xan@igalia.com>2012-09-13 00:26:15 +0800
commit90501400ad4d1901cca48c1f4435f1e50f6b851b (patch)
treec06e6efbb8cbc1e74b16432c04e74b0def0555f4 /src/ephy-shell.c
parent032378d9bb8539d070896b4cc1f16b8c15c8a8fc (diff)
downloadgsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar.gz
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar.bz2
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar.lz
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar.xz
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.tar.zst
gsoc2013-epiphany-90501400ad4d1901cca48c1f4435f1e50f6b851b.zip
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
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c3
1 files changed, 3 insertions, 0 deletions
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;
}