From b072cc742dea761846fc0d445851a53dff3ed829 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sat, 7 Apr 2012 03:03:24 -0500 Subject: 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 --- src/ephy-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3