[epiphany] ephy-shell: handy gboolean fullscreen_lockdown



commit e32345ae0752c2b292b7ce84c342700339fd0d25
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Sat Apr 7 01:04:53 2012 -0500

    ephy-shell: handy gboolean fullscreen_lockdown
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676905

 src/ephy-shell.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 5b1038b..3f124a5 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -677,6 +677,7 @@ ephy_shell_new_tab_full (EphyShell *shell,
 {
   EphyWindow *window;
   EphyEmbed *embed = NULL;
+  gboolean fullscreen_lockdown = FALSE;
   gboolean in_new_window = TRUE;
   gboolean open_page = FALSE;
   gboolean jump_to;
@@ -691,10 +692,9 @@ ephy_shell_new_tab_full (EphyShell *shell,
   if (flags & EPHY_NEW_TAB_IN_EXISTING_WINDOW) in_new_window = FALSE;
   if (flags & EPHY_NEW_TAB_DONT_COPY_HISTORY) copy_history = FALSE;
 
-  in_new_window = in_new_window &&
-    !g_settings_get_boolean
-    (EPHY_SETTINGS_LOCKDOWN,
-     EPHY_PREFS_LOCKDOWN_FULLSCREEN);
+  fullscreen_lockdown = g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN,
+                                                EPHY_PREFS_LOCKDOWN_FULLSCREEN);
+  in_new_window = in_new_window && !fullscreen_lockdown;
   g_return_val_if_fail (open_page == (gboolean)(request != NULL), NULL);
 
   jump_to = (flags & EPHY_NEW_TAB_JUMP) != 0;



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