[nautilus] canvas-item: don't look for a "stock-nautilus-knob" themed icon
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-item: don't look for a "stock-nautilus-knob" themed icon
- Date: Sat, 6 Dec 2014 23:11:34 +0000 (UTC)
commit f5bd88211784bc7d5fa062089f907a6389f7acdc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Nov 30 11:44:39 2014 -0800
canvas-item: don't look for a "stock-nautilus-knob" themed icon
No theme ships this as far as I know.
libnautilus-private/nautilus-canvas-item.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-item.c b/libnautilus-private/nautilus-canvas-item.c
index 7e5d542..06cfb48 100644
--- a/libnautilus-private/nautilus-canvas-item.c
+++ b/libnautilus-private/nautilus-canvas-item.c
@@ -1046,17 +1046,12 @@ nautilus_canvas_item_invalidate_label (NautilusCanvasItem *item)
static GdkPixbuf *
get_knob_pixbuf (void)
{
- GdkPixbuf *knob_pixbuf;
+ GdkPixbuf *knob_pixbuf = NULL;
+ GInputStream *stream = g_resources_open_stream ("/org/gnome/nautilus/icons/knob.png", 0, NULL);
- knob_pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
- "stock-nautilus-knob",
- 8, 0, NULL);
- if (!knob_pixbuf) {
- GInputStream *stream = g_resources_open_stream ("/org/gnome/nautilus/icons/knob.png", 0,
NULL);
- if (stream != NULL) {
- knob_pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, NULL);
- g_object_unref (stream);
- }
+ if (stream != NULL) {
+ knob_pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, NULL);
+ g_object_unref (stream);
}
return knob_pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]