[epiphany] ephy-shell: EPHY_NEW_TAB_DONT_SHOW_WINDOW means no realize



commit b072cc742dea761846fc0d445851a53dff3ed829
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Sat Apr 7 03:03:24 2012 -0500

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



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