[nautilus] sidebar: use _icon_info_lookup_from_name ()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] sidebar: use _icon_info_lookup_from_name ()
- Date: Sun, 22 Aug 2010 16:49:41 +0000 (UTC)
commit f4ae07c8741d2e8cc6b96450c8bb86e532b59137
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Aug 22 18:49:24 2010 +0200
sidebar: use _icon_info_lookup_from_name ()
src/nautilus-places-sidebar.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 69668f6..7671c7e 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -208,23 +208,23 @@ static GdkPixbuf *
get_eject_icon (gboolean highlighted)
{
GdkPixbuf *eject;
- GIcon *eject_icon;
NautilusIconInfo *eject_icon_info;
int icon_size;
icon_size = nautilus_get_icon_size_for_stock_size (GTK_ICON_SIZE_MENU);
- eject_icon = g_icon_new_for_string ("media-eject", NULL);
- eject_icon_info = nautilus_icon_info_lookup (eject_icon, icon_size);
- g_object_unref (eject_icon_info);
-
+ eject_icon_info = nautilus_icon_info_lookup_from_name ("media-eject", icon_size);
eject = nautilus_icon_info_get_pixbuf_at_size (eject_icon_info, icon_size);
+
if (highlighted) {
GdkPixbuf *high;
high = eel_gdk_pixbuf_render (eject, 1, 255, 255, 0, 0);
g_object_unref (eject);
eject = high;
}
+
+ g_object_unref (eject_icon_info);
+
return eject;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]