From 8ba8c3e49734ff1214e28e47729cd018e7d29557 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Thu, 14 Jun 2012 18:46:09 -0500 Subject: ephy-shell: EPHY_EMBED_SHELL_MODE_TEST means no realize https://bugzilla.gnome.org/show_bug.cgi?id=678134 --- src/ephy-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ephy-shell.c') 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)); -- cgit v1.2.3