diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2011-11-23 19:44:51 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2011-11-23 19:45:16 +0800 |
commit | 13592e1c5b788c8739ff251d98aa8f6ae8e6ad96 (patch) | |
tree | 18afa3b6d4c2071b3d8322be1e1a681108441ad3 /src | |
parent | 842a3b2b7f1c73b72ab847f2d99dbc9c74fa4e08 (diff) | |
download | gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar.gz gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar.bz2 gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar.lz gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar.xz gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.tar.zst gsoc2013-epiphany-13592e1c5b788c8739ff251d98aa8f6ae8e6ad96.zip |
Don't ever show tabs when in application mode
https://bugzilla.gnome.org/show_bug.cgi?id=663668
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-notebook.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 756a29ddc..41207a2b7 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -416,24 +416,27 @@ notebook_drag_data_received_cb (GtkWidget* widget, /* * update_tabs_visibility: Hide tabs if there is only one tab - * and the pref is not set. + * and the pref is not set or when in application mode. */ static void update_tabs_visibility (EphyNotebook *nb, gboolean before_inserting) { EphyNotebookPrivate *priv = nb->priv; + EphyEmbedShellMode mode; gboolean show_tabs; guint num; + mode = ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (ephy_shell_get_default ())); num = gtk_notebook_get_n_pages (GTK_NOTEBOOK (nb)); if (before_inserting) num++; - show_tabs = (g_settings_get_boolean (EPHY_SETTINGS_UI, - EPHY_PREFS_UI_ALWAYS_SHOW_TABS_BAR) - || num > 1) && - priv->show_tabs == TRUE; + show_tabs = mode != EPHY_EMBED_SHELL_MODE_APPLICATION && + (g_settings_get_boolean (EPHY_SETTINGS_UI, + EPHY_PREFS_UI_ALWAYS_SHOW_TABS_BAR) + || num > 1) && + priv->show_tabs == TRUE; gtk_notebook_set_show_tabs (GTK_NOTEBOOK (nb), show_tabs); } |