[epiphany] Do not allow to bookmark pages in incognito mode
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Do not allow to bookmark pages in incognito mode
- Date: Wed, 1 Feb 2017 17:45:20 +0000 (UTC)
commit eec6703b784866c51a7b099f1ccfa6b3de881b61
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Feb 1 18:42:10 2017 +0100
Do not allow to bookmark pages in incognito mode
src/ephy-window.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 1835015..b3a31e3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3146,6 +3146,16 @@ ephy_window_constructed (GObject *object)
SENS_FLAG_CHROME, TRUE);
}
chrome &= ~(EPHY_WINDOW_CHROME_LOCATION | EPHY_WINDOW_CHROME_MENU | EPHY_WINDOW_CHROME_TABSBAR |
EPHY_WINDOW_CHROME_BOOKMARKS);
+ } else if (mode == EPHY_EMBED_SHELL_MODE_INCOGNITO) {
+ action_group = gtk_widget_get_action_group (GTK_WIDGET (window), "win");
+ action = g_action_map_lookup_action (G_ACTION_MAP (action_group), "bookmark-page");
+ ephy_action_change_sensitivity_flags (G_SIMPLE_ACTION (action),
+ SENS_FLAG_CHROME, TRUE);
+
+ action_group = gtk_widget_get_action_group (GTK_WIDGET (window), "popup");
+ action = g_action_map_lookup_action (G_ACTION_MAP (action_group), "context-bookmark-page");
+ ephy_action_change_sensitivity_flags (G_SIMPLE_ACTION (action),
+ SENS_FLAG_CHROME, TRUE);
}
ephy_window_set_chrome (window, chrome);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]