[epiphany] Do not show add bookmarks popover star in incognito mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Do not show add bookmarks popover star in incognito mode
- Date: Sun, 19 Feb 2017 19:00:08 +0000 (UTC)
commit accffcdae816ea3f9d6bdf2d62673e7a58d4ff43
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 19 12:59:16 2017 -0600
Do not show add bookmarks popover star in incognito mode
It doesn't work in incognito mode.
src/ephy-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 95e3922..d405910 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1125,6 +1125,7 @@ sync_tab_bookmarked_status (EphyWebView *view,
EphyWindow *window)
{
EphyBookmarksManager *manager = ephy_shell_get_bookmarks_manager (ephy_shell_get_default ());
+ EphyEmbedShell *shell = ephy_embed_shell_get_default ();
EphyLocationEntryBookmarkIconState state;
GtkWidget *widget;
EphyBookmark *bookmark;
@@ -1137,7 +1138,9 @@ sync_tab_bookmarked_status (EphyWebView *view,
address = ephy_web_view_get_address (view);
- if (!address || ephy_embed_utils_is_no_show_address (address)) {
+ if (!address ||
+ ephy_embed_utils_is_no_show_address (address) ||
+ ephy_embed_shell_get_mode (shell) == EPHY_EMBED_SHELL_MODE_INCOGNITO) {
state = EPHY_LOCATION_ENTRY_BOOKMARK_ICON_HIDDEN;
} else {
bookmark = ephy_bookmarks_manager_get_bookmark_by_url (manager, address);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]