aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-12-12 17:58:06 +0800
committerXan Lopez <xan@igalia.com>2012-12-12 19:22:39 +0800
commit5660617413c37eb397a50361b6ca5bdd250b5be5 (patch)
treed03508164c93e4e212587f33bf0a6dc1af703a4c /src/ephy-shell.c
parent8b97d6e32fbe2e56a7012d731b5e864a86720504 (diff)
downloadgsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar.gz
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar.bz2
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar.lz
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar.xz
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.tar.zst
gsoc2013-epiphany-5660617413c37eb397a50361b6ca5bdd250b5be5.zip
First iteration for 'Incognito mode'
For now this is just a private mode but with the following two twists: - We use the dark theme. - We steal our history and bookmarks from the main profile. This is done in 'read-only' mode though, so any changes made in this session will be lost. Add command line options and a UI item to launch the browser in this mode. https://bugzilla.gnome.org/show_bug.cgi?id=676914
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 3c4cbfc1b..813eea396 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -165,6 +165,14 @@ new_window (GSimpleAction *action,
}
static void
+new_incognito_window (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
+{
+ window_cmd_file_new_incognito_window (NULL, NULL);
+}
+
+static void
show_bookmarks (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
@@ -218,6 +226,7 @@ quit_application (GSimpleAction *action,
static GActionEntry app_entries[] = {
{ "new", new_window, NULL, NULL, NULL },
+ { "incognito", new_incognito_window, NULL, NULL, NULL },
{ "bookmarks", show_bookmarks, NULL, NULL, NULL },
{ "history", show_history, NULL, NULL, NULL },
{ "preferences", show_preferences, NULL, NULL, NULL },