diff options
author | Jasmine Hassan <[email protected]> | 2012-10-27 11:25:12 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-11-16 09:45:50 +0200 |
commit | e9f10bb18e0b8e0c39c28630b7aab6d739afc80b (patch) | |
tree | 23e9e856512edb59f2d3ebe6bb1bced27b29c653 /src | |
parent | 408fb6c29f23b58f5fba2704b378c2d58151490b (diff) | |
download | caja-e9f10bb18e0b8e0c39c28630b7aab6d739afc80b.tar.bz2 caja-e9f10bb18e0b8e0c39c28630b7aab6d739afc80b.tar.xz |
[places-sidebar] use _icon_info_lookup_from_name()
http://git.gnome.org/browse/nautilus/commit/?id=f4ae07c8741d2e8cc6b96450c8bb86e532b59137
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-places-sidebar.c | 10 |
1 files 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; } |