aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-04 05:40:11 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-04 05:40:11 +0800
commit3808248a3d7e6de282f38f92d77311ed5d603d77 (patch)
treef700950225720083c1d3b91f8d24dcc0d749e6bd /src/ephy-window.c
parenta6b19e2aa48950d339d319e34ee1ab72eae6cbe3 (diff)
downloadgsoc2013-epiphany-3808248a3d7e6de282f38f92d77311ed5d603d77.tar.gz
gsoc2013-epiphany-3808248a3d7e6de282f38f92d77311ed5d603d77.tar.zst
gsoc2013-epiphany-3808248a3d7e6de282f38f92d77311ed5d603d77.zip
Also bring the window to the front.
2004-11-03 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (modal_alert_cb): Also bring the window to the front.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 69016360e..c588b3269 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1965,7 +1965,12 @@ modal_alert_cb (EphyEmbed *embed,
tab = ephy_tab_for_embed (embed);
g_return_val_if_fail (tab != NULL, FALSE);
+ /* switch the window to the tab, and bring the window to the foreground
+ * (since the alert is modal, the user won't be able to do anything
+ * with his current window anyway :|)
+ */
ephy_window_jump_to_tab (window, tab);
+ gtk_window_present (GTK_WINDOW (window));
/* make sure the location entry shows the real URL of the tab's page */
address = ephy_embed_get_location (embed, TRUE);