summaryrefslogtreecommitdiff
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2014-02-13 15:10:03 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2014-03-03 14:08:49 +0100
commit49e09e366b4bad8df2ca0e2368f5e1ad82f45ac4 (patch)
treebb99654c645c0832c35e25619cba941b546597cd /src/ephy-shell.c
parent0b9fdf677e37eb508e119bf236ad86aa6e0daf8b (diff)
downloadepiphany-49e09e366b4bad8df2ca0e2368f5e1ad82f45ac4.tar.gz
Remove flag EPHY_NEW_TAB_PRESENT_WINDOW
It's simpler to call gtk_window_present by the callers.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 7bc94d7e7..2cd450682 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -709,10 +709,6 @@ ephy_shell_new_tab_full (EphyShell *shell,
gtk_widget_show (GTK_WIDGET (window));
}
- if (flags & EPHY_NEW_TAB_PRESENT_WINDOW &&
- ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (embed_shell)) != EPHY_EMBED_SHELL_MODE_TEST)
- gtk_window_present_with_time (GTK_WINDOW (window), user_time);
-
return embed;
}
@@ -1007,7 +1003,7 @@ open_uris_data_new (EphyShell *shell,
if (startup_flags & EPHY_STARTUP_NEW_WINDOW && !fullscreen_lockdown) {
data->window = ephy_window_new ();
} else if (startup_flags & EPHY_STARTUP_NEW_TAB || (new_windows_in_tabs && have_uris)) {
- data->flags |= EPHY_NEW_TAB_JUMP | EPHY_NEW_TAB_PRESENT_WINDOW;
+ data->flags |= EPHY_NEW_TAB_JUMP;
data->window = ephy_shell_get_main_window (shell);
data->reuse_empty_tab = TRUE;
} else if (!have_uris) {
@@ -1062,6 +1058,9 @@ ephy_shell_open_uris_idle (OpenURIsData *data)
/* When reusing an empty tab, the focus is in the location entry */
if (reusing_empty_tab || data->flags & EPHY_NEW_TAB_JUMP)
gtk_widget_grab_focus (GTK_WIDGET (embed));
+
+ if (data->flags & EPHY_NEW_TAB_JUMP && ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (data->shell)) != EPHY_EMBED_SHELL_MODE_TEST)
+ gtk_window_present_with_time (GTK_WINDOW (data->window), data->user_time);
} else {
ephy_web_view_load_homepage (ephy_embed_get_web_view (embed));
ephy_window_activate_location (data->window);