[gtk+/xi2: 1004/1239] GdkWindow: Implement gdk_window_get_device_cursor().
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 1004/1239] GdkWindow: Implement gdk_window_get_device_cursor().
- Date: Tue, 29 Sep 2009 10:54:58 +0000 (UTC)
commit 5d5c2c73189dbdeb4aee1322f294fdbeb5a67719
Author: Carlos Garnacho <carlos gnome org>
Date: Fri Sep 4 02:17:09 2009 +0200
GdkWindow: Implement gdk_window_get_device_cursor().
gdk/gdkwindow.c | 14 ++++++++++++++
gdk/gdkwindow.h | 2 ++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b0f46d1..d431557 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7346,6 +7346,20 @@ gdk_window_set_cursor (GdkWindow *window,
}
}
+GdkCursor *
+gdk_window_get_device_cursor (GdkWindow *window,
+ GdkDevice *device)
+{
+ GdkWindowObject *private;
+
+ g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
+ g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
+
+ private = (GdkWindowObject *) window;
+
+ return g_hash_table_lookup (private->device_cursor, device);
+}
+
void
gdk_window_set_device_cursor (GdkWindow *window,
GdkDevice *device,
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 90c1047..5d24a7b 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -522,6 +522,8 @@ GdkCursor *gdk_window_get_cursor (GdkWindow *window);
void gdk_window_set_device_cursor (GdkWindow *window,
GdkDevice *device,
GdkCursor *cursor);
+GdkCursor *gdk_window_get_device_cursor (GdkWindow *window,
+ GdkDevice *device);
void gdk_window_get_user_data (GdkWindow *window,
gpointer *data);
void gdk_window_get_geometry (GdkWindow *window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]