diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-11-04 05:40:58 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-11-04 05:40:58 +0800 |
commit | 39ef0d7ab29acf64f0dd88f2450e13134c26026e (patch) | |
tree | 9cf0cf3f96f576117c141ba687a5d5204e392e84 /src | |
parent | e05ca0db79a5a4fad8a8def02ef9a660469c7362 (diff) | |
download | gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar.gz gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar.bz2 gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar.lz gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar.xz gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.tar.zst gsoc2013-epiphany-39ef0d7ab29acf64f0dd88f2450e13134c26026e.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')
-rw-r--r-- | src/ephy-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index e95c39636..8436a0d9a 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1827,7 +1827,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); |