summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch')
-rw-r--r--recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch b/recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch
new file mode 100644
index 0000000..381c8be
--- /dev/null
+++ b/recipes-lxde/lxappearance/lxappearance-0.5.5/empty-cursor.patch
@@ -0,0 +1,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);
+ }