aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmark-properties.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-05 05:18:49 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-05 05:18:49 +0800
commit07e2d63d6a93a572b26ed4d79d3e22a90475a544 (patch)
tree9a9c3314eb052c072ef12f9d90c7df80bb4e184f /src/bookmarks/ephy-bookmark-properties.c
parentcfb26886967078899fdd8aefa3560b4626a3d29f (diff)
downloadgsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar.gz
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar.bz2
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar.lz
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar.xz
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.tar.zst
gsoc2013-epiphany-07e2d63d6a93a572b26ed4d79d3e22a90475a544.zip
Set window icon.
2004-10-04 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmark-properties.c: (set_window_icon), (ephy_bookmark_properties_get_node): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_construct), (duplicate_dialog_construct): * src/ephy-history-window.c: (ephy_history_window_construct): * src/window-commands.c: (window_cmd_edit_toolbar): Set window icon.
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;
}
-