aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmark-action.c
diff options
context:
space:
mode:
authorPeter Harvey <peter.a.harvey@gmail.com>2006-01-22 06:38:53 +0800
committerPeter Anthony Harvey <paharvey@src.gnome.org>2006-01-22 06:38:53 +0800
commit3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad (patch)
tree4f7494a0ae1c040109e1cb4132bf19e9bbde2e77 /src/bookmarks/ephy-bookmark-action.c
parentdbc0b3af9051885a4f70e831e16fa535b6bf7866 (diff)
downloadgsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar.gz
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar.bz2
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar.lz
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar.xz
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.tar.zst
gsoc2013-epiphany-3eccb1ab3f34e2e83a6f356fb787d99726b7c3ad.zip
src/bookmarks/ephy-bookmark-action.c
2006-01-22 Peter Harvey <peter.a.harvey@gmail.com> * src/bookmarks/ephy-bookmark-action.c * src/bookmarks/ephy-bookmark-properties.c Remove the user-icon functionality for now. Too many bugs. Note that support for the user-icon field still exists in the bookmarks database itself.
Diffstat (limited to 'src/bookmarks/ephy-bookmark-action.c')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 678c5d609..888b3b4ce 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -159,6 +159,8 @@ ephy_bookmark_action_sync_smart_url (GtkAction *gaction, GParamSpec *pspec, GtkW
EphyBookmarkAction *action = EPHY_BOOKMARK_ACTION (gaction);
EphyBookmarkActionPrivate *priv = action->priv;
gboolean is_smart_url = priv->smart_url;
+ gboolean has_icon = (gboolean) ephy_node_get_property_string
+ (priv->node, EPHY_NODE_BMK_PROP_ICON);
GtkWidget *entry, *icon;
guint width;
@@ -168,6 +170,7 @@ ephy_bookmark_action_sync_smart_url (GtkAction *gaction, GParamSpec *pspec, GtkW
icon = GTK_WIDGET (g_object_get_data (G_OBJECT (proxy), "icon"));
g_object_set (entry, "visible", is_smart_url, NULL);
+ g_object_set (icon, "visible", !is_smart_url || has_icon, NULL);
gtk_entry_set_width_chars (GTK_ENTRY (entry),
width > 0 ? width : ENTRY_WIDTH_CHARS);
}
@@ -205,12 +208,7 @@ ephy_bookmark_action_sync_icon (GtkAction *action, GParamSpec *pspec, GtkWidget
g_return_if_fail (bma->priv->node != NULL);
icon_location = ephy_node_get_property_string (bma->priv->node,
- EPHY_NODE_BMK_PROP_USERICON);
- if (icon_location == NULL)
- {
- icon_location = ephy_node_get_property_string (bma->priv->node,
- EPHY_NODE_BMK_PROP_ICON);
- }
+ EPHY_NODE_BMK_PROP_ICON);
cache = EPHY_FAVICON_CACHE (ephy_embed_shell_get_favicon_cache
(EPHY_EMBED_SHELL (ephy_shell)));