Commit fc81607f authored by Attilio Fiandrotti's avatar Attilio Fiandrotti

Attempts to load stock X cursors no longer results in annoying error messages under DirectFB

svn path=/trunk/; revision=18549
parent a93eedb9
2007-07-27 Attilio Fiandrotti <attilio.fiandrotti@gmail.com>
* gdk/directfb/gdkcursor-directfb.c: Attempts to load
stock X cursors no longer results in annoying error
messages under DirectFB
2007-07-27 Michael Natterer <mitch@imendio.com>
Fix check/radio indicator drawing mess (bug #452225):
......
......@@ -444,6 +444,9 @@ gdk_cursor_new_from_name (GdkDisplay *display,
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
pixbuf = gdk_pixbuf_new_from_file(name, NULL);
/* Prevents attempts to load stock X cursors from generating error messages */
if (pixbuf == NULL)
return NULL;
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
cursor = gdk_cursor_new_from_pixbuf (display, pixbuf, 1, 1);
g_object_unref (pixbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment