aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2013-01-29 04:05:00 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-02-08 05:54:58 +0800
commit180ad78567be78007ac26fe5b73b0a2a28c0eb1f (patch)
tree2d0a370577e113ea30c22f29342e1a212cef4a08 /embed/ephy-web-view.c
parent946292f704d24d3e82761a97bc4666df3458bc5b (diff)
downloadgsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.gz
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.bz2
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.lz
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.xz
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.zst
gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.zip
ephy-embed-shell: add EPHY_EMBED_SHELL_MODE_INCOGNITO
Since we need to differenciate between incognito and private mode in order to enable restoring closed tabs only for the latter case. Add a macro for the cases in which either mode should behave in the same way to simplify the change. https://bugzilla.gnome.org/show_bug.cgi?id=128184
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index b1d84de1a..adfdc7450 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2207,7 +2207,7 @@ load_changed_cb (WebKitWebView *web_view,
#if 0
/* TODO: DOM bindings */
- if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) != EPHY_EMBED_SHELL_MODE_PRIVATE &&
+ if (!EPHY_EMBED_SHELL_MODE_HAS_PRIVATE_PROFILE(ephy_embed_shell_get_mode (ephy_embed_shell_get_default ())) &&
g_settings_get_boolean (EPHY_SETTINGS_MAIN,
EPHY_PREFS_REMEMBER_PASSWORDS))
_ephy_web_view_hook_into_forms (view);
@@ -2329,7 +2329,7 @@ load_status_cb (WebKitWebView *web_view,
if (priv->is_blank)
ephy_web_view_set_title (view, NULL);
- if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) != EPHY_EMBED_SHELL_MODE_PRIVATE &&
+ if (!EPHY_EMBED_SHELL_MODE_HAS_PRIVATE_PROFILE(ephy_embed_shell_get_mode (ephy_embed_shell_get_default ())) &&
g_settings_get_boolean (EPHY_SETTINGS_MAIN,
EPHY_PREFS_REMEMBER_PASSWORDS))
_ephy_web_view_hook_into_forms (view);