diff options
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r-- | gdk/gdkcursor.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c index 4f42d0901b..dc0b5ee813 100644 --- a/gdk/gdkcursor.c +++ b/gdk/gdkcursor.c @@ -25,6 +25,7 @@ */ #include "gdkcursor.h" +#include "gdkscreen.h" #include "gdkinternals.h" GType @@ -78,3 +79,20 @@ gdk_cursor_unref (GdkCursor *cursor) _gdk_cursor_destroy (cursor); } +/** + * gdk_cursor_new: + * @cursor_type: cursor to create + * + * Creates a new cursor from the set of builtin cursors for the default screen. + * See gdk_cursor_new_for_screen(). + * + * To make the cursor invisible, use gdk_cursor_new_from_pixmap() to create + * a cursor with no pixels in it. + * + * Return value: a new #GdkCursor + **/ +GdkCursor* +gdk_cursor_new (GdkCursorType cursor_type) +{ + return gdk_cursor_new_for_screen (gdk_get_default_screen(), cursor_type); +} |