[epiphany] ephy-shell: EPHY_EMBED_SHELL_MODE_TEST means no realize



commit 8ba8c3e49734ff1214e28e47729cd018e7d29557
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Thu Jun 14 18:46:09 2012 -0500

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index caa3c84..8e5b98c 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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]