[epiphany] Use a symbolic icon for the default favicon
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Use a symbolic icon for the default favicon
- Date: Wed, 11 Dec 2013 14:26:11 +0000 (UTC)
commit 6558780923e6926fa95aea0d5d556d22530f1e9e
Author: William Jon McCann <william jon mccann gmail com>
Date: Wed Dec 11 13:45:33 2013 +0100
Use a symbolic icon for the default favicon
lib/widgets/ephy-location-entry.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 1426939..217ac52 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -386,13 +386,20 @@ update_favicon (EphyLocationEntry *lentry)
}
else if (priv->show_favicon)
{
+ const char *icon_name;
+
/* Here we could consider using fallback favicon that matches
* the page MIME type, though text/html should be good enough
* most of the time. See #337140
*/
+ if (gtk_entry_get_text_length (entry) > 0)
+ icon_name = "text-x-generic-symbolic";
+ else
+ icon_name = "edit-find-symbolic";
+
gtk_entry_set_icon_from_icon_name (entry,
GTK_ENTRY_ICON_PRIMARY,
- "text-html");
+ icon_name);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]