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

svn path=/trunk/; revision=18549
This commit is contained in:
Attilio Fiandrotti 2007-07-27 16:27:37 +00:00
parent a93eedb926
commit fc81607f22
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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):

View File

@ -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);