diff options
author | Attilio Fiandrotti <attilio@src.gnome.org> | 2007-07-27 16:27:37 +0000 |
---|---|---|
committer | Attilio Fiandrotti <attilio@src.gnome.org> | 2007-07-27 16:27:37 +0000 |
commit | fc81607f22bf1ce5d220f31bfefe0f2582cb55d0 (patch) | |
tree | 2cc59058848eb75da67e367d0773ddc2043e2aa2 /gdk/directfb | |
parent | a93eedb9267dca311dab6cc3c8c78bfd5ad59a13 (diff) | |
download | gtk+-fc81607f22bf1ce5d220f31bfefe0f2582cb55d0.tar.gz |
Attempts to load stock X cursors no longer results in annoying error messages under DirectFB
svn path=/trunk/; revision=18549
Diffstat (limited to 'gdk/directfb')
-rw-r--r-- | gdk/directfb/gdkcursor-directfb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/directfb/gdkcursor-directfb.c b/gdk/directfb/gdkcursor-directfb.c index 9383c2ba41..8ab7aec7b8 100644 --- a/gdk/directfb/gdkcursor-directfb.c +++ b/gdk/directfb/gdkcursor-directfb.c @@ -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); |