Add gdk_cursor_get_cursor_type

https://bugzilla.gnome.org/show_bug.cgi?id=624087
This commit is contained in:
John Stowers 2010-07-14 21:55:27 +12:00
parent 5616a82c0a
commit fe603cccf2
4 changed files with 20 additions and 0 deletions

View File

@ -1147,6 +1147,7 @@ gdk_cursor_new_from_name
gdk_cursor_new_for_display gdk_cursor_new_for_display
gdk_cursor_get_display gdk_cursor_get_display
gdk_cursor_get_image gdk_cursor_get_image
gdk_cursor_get_cursor_type
gdk_cursor_ref gdk_cursor_ref
gdk_cursor_unref gdk_cursor_unref

View File

@ -333,6 +333,7 @@ gdk_colormap_get_screen
#if IN_HEADER(__GDK_CURSOR_H__) #if IN_HEADER(__GDK_CURSOR_H__)
#if IN_FILE(__GDK_CURSOR_C__) #if IN_FILE(__GDK_CURSOR_C__)
gdk_cursor_get_type G_GNUC_CONST gdk_cursor_get_type G_GNUC_CONST
gdk_cursor_get_cursor_type
gdk_cursor_new gdk_cursor_new
gdk_cursor_ref gdk_cursor_ref
gdk_cursor_unref gdk_cursor_unref

View File

@ -97,3 +97,20 @@ gdk_cursor_new (GdkCursorType cursor_type)
{ {
return gdk_cursor_new_for_display (gdk_display_get_default(), cursor_type); return gdk_cursor_new_for_display (gdk_display_get_default(), cursor_type);
} }
/**
* gdk_cursor_get_cursor_type:
* @cursor: a #GdkCursor
*
* Returns the cursor type for this cursor.
*
* Return value: a #GdkCursorType
*
* Since: 2.22
**/
GdkCursorType
gdk_cursor_get_cursor_type (GdkCursor *cursor)
{
g_return_val_if_fail (cursor != NULL, GDK_BLANK_CURSOR);
return cursor->type;
}

View File

@ -157,6 +157,7 @@ void gdk_cursor_unref (GdkCursor *cursor);
GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display, GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
const gchar *name); const gchar *name);
GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor); GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);
G_END_DECLS G_END_DECLS