diff options
author | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-04-07 16:03:24 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-04-22 09:32:32 +0800 |
commit | b072cc742dea761846fc0d445851a53dff3ed829 (patch) | |
tree | 55b42dc316e3b4c56a6dd9713013dd83e9e79f95 /src | |
parent | f9e00946d51a745f392ba88bf879e77bb157e663 (diff) | |
download | gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar.gz gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar.bz2 gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar.lz gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar.xz gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.tar.zst gsoc2013-epiphany-b072cc742dea761846fc0d445851a53dff3ed829.zip |
ephy-shell: EPHY_NEW_TAB_DONT_SHOW_WINDOW means no realize
If the user passed EPHY_NEW_TAB_DONT_SHOW_WINDOW do not call
gtk_widget_realize and gtk_widget_grab_focus on the returned EphyEmbed
since this is most likely against the intentions of
EPHY_NEW_TAB_DONT_SHOW_WINDOW.
https://bugzilla.gnome.org/show_bug.cgi?id=673683
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 9c5197c08..18236420f 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -797,7 +797,7 @@ ephy_shell_new_tab_full (EphyShell *shell, if (is_empty) { /* empty page, focus location entry */ ephy_window_activate_location (window); - } else if (embed != NULL) { + } else if ((flags & EPHY_NEW_TAB_DONT_SHOW_WINDOW) == 0 && embed != NULL) { /* 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)); |