[gtk+/gtk-2-22] Add gdk_cursor_get_cursor_type
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Add gdk_cursor_get_cursor_type
- Date: Sun, 25 Jul 2010 00:33:59 +0000 (UTC)
commit 6c25cf872f765f7093d0c4687d9fe03e35f7da48
Author: John Stowers <john stowers gmail com>
Date: Wed Jul 14 21:55:27 2010 +1200
Add gdk_cursor_get_cursor_type
https://bugzilla.gnome.org/show_bug.cgi?id=624087
docs/reference/gdk/gdk-sections.txt | 1 +
gdk/gdk.symbols | 1 +
gdk/gdkcursor.c | 17 +++++++++++++++++
gdk/gdkcursor.h | 1 +
4 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gdk/gdk-sections.txt b/docs/reference/gdk/gdk-sections.txt
index b8e8710..cecc971 100644
--- a/docs/reference/gdk/gdk-sections.txt
+++ b/docs/reference/gdk/gdk-sections.txt
@@ -1209,6 +1209,7 @@ gdk_cursor_new_from_name
gdk_cursor_new_for_display
gdk_cursor_get_display
gdk_cursor_get_image
+gdk_cursor_get_cursor_type
gdk_cursor_ref
gdk_cursor_unref
gdk_cursor_destroy
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index e328855..3dc234f 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -358,6 +358,7 @@ gdk_colormap_get_screen
#if IN_HEADER(__GDK_CURSOR_H__)
#if IN_FILE(__GDK_CURSOR_C__)
gdk_cursor_get_type G_GNUC_CONST
+gdk_cursor_get_cursor_type
gdk_cursor_new
gdk_cursor_ref
gdk_cursor_unref
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index a3677e9..5a6acea 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -98,5 +98,22 @@ gdk_cursor_new (GdkCursorType 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;
+}
+
#define __GDK_CURSOR_C__
#include "gdkaliasdef.c"
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h
index 70413c8..14b7436 100644
--- a/gdk/gdkcursor.h
+++ b/gdk/gdkcursor.h
@@ -157,6 +157,7 @@ void gdk_cursor_unref (GdkCursor *cursor);
GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
const gchar *name);
GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
+GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);
#ifndef GDK_DISABLE_DEPRECATED
#define gdk_cursor_destroy gdk_cursor_unref
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]