From e9f10bb18e0b8e0c39c28630b7aab6d739afc80b Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Sat, 27 Oct 2012 11:25:12 +0200 Subject: [places-sidebar] use _icon_info_lookup_from_name() http://git.gnome.org/browse/nautilus/commit/?id=f4ae07c8741d2e8cc6b96450c8bb86e532b59137 --- src/caja-places-sidebar.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index 770c1e28..71d0bd59 100644 --- a/src/caja-places-sidebar.c +++ b/src/caja-places-sidebar.c @@ -219,23 +219,23 @@ static GdkPixbuf * get_eject_icon (gboolean highlighted) { GdkPixbuf *eject; - GIcon *eject_icon; CajaIconInfo *eject_icon_info; int icon_size; icon_size = caja_get_icon_size_for_stock_size (GTK_ICON_SIZE_MENU); - eject_icon = g_icon_new_for_string ("media-eject", NULL); - eject_icon_info = caja_icon_info_lookup (eject_icon, icon_size); - g_object_unref (eject_icon_info); - + eject_icon_info = caja_icon_info_lookup_from_name ("media-eject", icon_size); eject = caja_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; } -- cgit v1.2.1