summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch
blob: 381c8be81da2c78248e161bec6329215289609e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -auNr lxappearance-0.5.1.orig/src/cursor-theme.c lxappearance-0.5.1/src/cursor-theme.c
--- lxappearance-0.5.1.orig/src/cursor-theme.c	2012-01-15 20:16:51.113223420 +0100
+++ lxappearance-0.5.1/src/cursor-theme.c	2012-01-15 20:17:17.017897756 +0100
@@ -44,6 +44,8 @@
         cursor = gdk_cursor_new(types[i]);
         GdkPixbuf* pix = gdk_cursor_get_image(cursor);
         gdk_cursor_unref(cursor);
+	if (pix == NULL)
+		continue;
         gtk_list_store_insert_with_values(store, &it, -1, 0, pix, -1);
         g_object_unref(pix);
     }