diff options
author | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-06-15 07:46:09 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-06-18 03:42:03 +0800 |
commit | 8ba8c3e49734ff1214e28e47729cd018e7d29557 (patch) | |
tree | ed4c13661c5b14524397b8bdc116f1c0ac8e775d | |
parent | 6594295a337008aed3495adf7dade4c2d54c783e (diff) | |
download | gsoc2013-epiphany-8ba8c3e49734ff1214e28e47729cd018e7d29557.tar.gz 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
-rw-r--r-- | 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 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)); |