aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmark-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmark-properties.c')
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index d72482a65..6c92b6e88 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -280,30 +280,28 @@ set_window_icon (EphyBookmarkProperties *editor)
GdkPixbuf *icon = NULL;
cache = EPHY_FAVICON_CACHE
- (ephy_embed_shell_get_favicon_cache (EPHY_EMBED_SHELL (ephy_shell)));
+ (ephy_embed_shell_get_favicon_cache (embed_shell));
icon_location = ephy_node_get_property_string
(editor->priv->bookmark, EPHY_NODE_BMK_PROP_ICON);
LOG ("Get favicon for %s", icon_location ? icon_location : "None")
- if (icon_location)
+ if (icon_location != NULL)
{
icon = ephy_favicon_cache_get (cache, icon_location);
}
- else
- {
- icon = gtk_widget_render_icon (GTK_WIDGET (editor),
- GTK_STOCK_PROPERTIES,
- GTK_ICON_SIZE_MENU,
- NULL);
- }
-
if (icon != NULL)
{
gtk_window_set_icon (GTK_WINDOW (editor), icon);
g_object_unref (icon);
}
+ else
+ {
+ gtk_window_set_icon_name (GTK_WINDOW (editor),
+ GTK_STOCK_PROPERTIES);
+ }
+
}
static void
@@ -460,4 +458,3 @@ ephy_bookmark_properties_get_node (EphyBookmarkProperties *properties)
{
return properties->priv->bookmark;
}
-