aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-06-15 07:46:09 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-06-18 03:42:03 +0800
commit8ba8c3e49734ff1214e28e47729cd018e7d29557 (patch)
treeed4c13661c5b14524397b8bdc116f1c0ac8e775d /src/ephy-shell.c
parent6594295a337008aed3495adf7dade4c2d54c783e (diff)
downloadgsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.gz
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.bz2
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.lz
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.xz
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.zst
gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.zip
ephy-shell: EPHY_EMBED_SHELL_MODE_TEST means no realize
https://bugzilla.gnome.org/show_bug.cgi?id=678134
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index caa3c843d..8e5b98c12 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -773,7 +773,8 @@ ephy_shell_new_tab_full (EphyShell *shell,
if (is_empty) {
/* empty page, focus location entry */
ephy_window_activate_location (window);
- } else if ((flags & EPHY_NEW_TAB_DONT_SHOW_WINDOW) == 0 && embed != NULL) {
+ } else if ((flags & EPHY_NEW_TAB_DONT_SHOW_WINDOW) == 0 && embed != NULL &&
+ ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_TEST) {
/* non-empty page, focus the page. but make sure the widget is realised first! */
gtk_widget_realize (GTK_WIDGET (embed));
gtk_widget_grab_focus (GTK_WIDGET (embed));