aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-notebook.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-04-16 20:03:49 +0800
committerXan Lopez <xan@igalia.com>2012-04-16 21:53:29 +0800
commit7b666dcffb61a417ebe43ab9f10ca0450a288ea8 (patch)
tree8751b8d36334228c67cb1c52d8f48410c2634cb0 /src/ephy-notebook.c
parent6e45bec38cc6696c2cc789403082368fcdbcd68f (diff)
downloadgsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar.gz
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar.bz2
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar.lz
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar.xz
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.tar.zst
gsoc2013-epiphany-7b666dcffb61a417ebe43ab9f10ca0450a288ea8.zip
Add an option to never show the tabs bar
We'll use this when we land the Overview.
Diffstat (limited to 'src/ephy-notebook.c')
-rw-r--r--src/ephy-notebook.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 5614ca707..1b73e7bfa 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -397,7 +397,7 @@ update_tabs_visibility (EphyNotebook *nb,
gboolean before_inserting)
{
EphyEmbedShellMode mode;
- gboolean show_tabs;
+ gboolean show_tabs = FALSE;
guint num;
EphyPrefsUITabsBarVisibilityPolicy policy;
@@ -409,11 +409,11 @@ update_tabs_visibility (EphyNotebook *nb,
policy = g_settings_get_enum (EPHY_SETTINGS_UI,
EPHY_PREFS_UI_TABS_BAR_VISIBILITY_POLICY);
- show_tabs = mode != EPHY_EMBED_SHELL_MODE_APPLICATION &&
- (policy == EPHY_PREFS_UI_TABS_BAR_VISIBILITY_POLICY_ALWAYS
- || num > 1) &&
- priv->show_tabs == TRUE;
-
+ if (mode != EPHY_EMBED_SHELL_MODE_APPLICATION &&
+ ((policy == EPHY_PREFS_UI_TABS_BAR_VISIBILITY_POLICY_MORE_THAN_ONE && num > 1) ||
+ policy == EPHY_PREFS_UI_TABS_BAR_VISIBILITY_POLICY_ALWAYS))
+ show_tabs = TRUE;
+
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (nb), show_tabs);
}