diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2013-01-29 04:05:00 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2013-02-08 05:54:58 +0800 |
commit | 180ad78567be78007ac26fe5b73b0a2a28c0eb1f (patch) | |
tree | 2d0a370577e113ea30c22f29342e1a212cef4a08 /embed/ephy-embed-shell.h | |
parent | 946292f704d24d3e82761a97bc4666df3458bc5b (diff) | |
download | gsoc2013-epiphany-180ad78567be78007ac26fe5b73b0a2a28c0eb1f.tar.gz 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-embed-shell.h')
-rw-r--r-- | embed/ephy-embed-shell.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h index 08558f7f2..e9973a288 100644 --- a/embed/ephy-embed-shell.h +++ b/embed/ephy-embed-shell.h @@ -47,10 +47,14 @@ typedef enum { EPHY_EMBED_SHELL_MODE_BROWSER, EPHY_EMBED_SHELL_MODE_PRIVATE, + EPHY_EMBED_SHELL_MODE_INCOGNITO, EPHY_EMBED_SHELL_MODE_APPLICATION, EPHY_EMBED_SHELL_MODE_TEST } EphyEmbedShellMode; +#define EPHY_EMBED_SHELL_MODE_HAS_PRIVATE_PROFILE(mode) \ + (mode == EPHY_EMBED_SHELL_MODE_PRIVATE || mode == EPHY_EMBED_SHELL_MODE_INCOGNITO) + struct _EphyEmbedShell { GtkApplication parent; |