[epiphany] ephy-location-entry: Hide security indicator within reader mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-location-entry: Hide security indicator within reader mode
- Date: Wed, 8 Aug 2018 16:02:49 +0000 (UTC)
commit 196d3a5e205867c2216b713f9cde8f455d04947f
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Tue Aug 7 22:15:43 2018 +0200
ephy-location-entry: Hide security indicator within reader mode
Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/45
lib/widgets/ephy-location-entry.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 89ea3f8c9..5eaacbb2c 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -230,10 +230,16 @@ ephy_location_entry_title_widget_set_security_level (EphyTitleWidget *widget,
g_assert (entry);
- icon_name = ephy_security_level_to_icon_name (security_level);
- gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry->url_entry),
- GTK_ENTRY_ICON_PRIMARY,
- icon_name);
+ if (!entry->reader_mode_active) {
+ icon_name = ephy_security_level_to_icon_name (security_level);
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry->url_entry),
+ GTK_ENTRY_ICON_PRIMARY,
+ icon_name);
+ } else {
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry->url_entry),
+ GTK_ENTRY_ICON_PRIMARY,
+ NULL);
+ }
entry->security_level = security_level;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]