mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
a93eedb926
commit
fc81607f22
@ -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):
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user