aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2013-02-20 02:28:05 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-03-05 16:58:10 +0800
commit0b67bd0b7c0d391441b60da38a1720f4d840d920 (patch)
treeee8e49717c92d4d3e549f07251bb977e8cc0a2f8 /embed/ephy-embed.c
parent4e23859050fd1410820312c16a21b3716d9f08e9 (diff)
downloadgsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.gz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.bz2
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.lz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.xz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.zst
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.zip
incognito: show about:incognito instead of the overview
The overview shouldn't be shown in an incognito window as it reveals information about the browsing activity of the user. Also, a welcome page indicating the scope of the incognito window is better. https://bugzilla.gnome.org/show_bug.cgi?id=694200
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 608a9a047..0fdf921fb 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -961,15 +961,18 @@ ephy_embed_constructed (GObject *object)
gtk_container_add (GTK_CONTAINER (overlay), scrolled_window);
#endif
- /* The overview */
- priv->overview = ephy_overview_new ();
- gtk_widget_set_halign (priv->overview, GTK_ALIGN_FILL);
- gtk_widget_set_valign (priv->overview, GTK_ALIGN_FILL);
- gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->overview);
-
- g_object_bind_property (embed, "overview-mode",
- priv->overview, "visible",
- G_BINDING_SYNC_CREATE);
+ /* The overview. In incognito mode we don't use it. */
+ if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) !=
+ EPHY_EMBED_SHELL_MODE_INCOGNITO) {
+ priv->overview = ephy_overview_new ();
+ gtk_widget_set_halign (priv->overview, GTK_ALIGN_FILL);
+ gtk_widget_set_valign (priv->overview, GTK_ALIGN_FILL);
+ gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->overview);
+
+ g_object_bind_property (embed, "overview-mode",
+ priv->overview, "visible",
+ G_BINDING_SYNC_CREATE);
+ }
/* Floating message popup for fullscreen mode. */
priv->fullscreen_message_label = gtk_label_new (NULL);