[gtk+] Bug 596494 - New property "cursor" in 2.18's GdkWindow with wrong type?



commit fe188a18f324f4545af857436a6060e676a1287d
Author: Cody Russell <bratsche gnome org>
Date:   Sun Sep 27 14:37:19 2009 -0500

    Bug 596494 - New property "cursor" in 2.18's GdkWindow with wrong type?
    
    Use a boxed paramspec with GDK_TYPE_CURSOR instead of a pointer paramspec.

 gdk/gdkwindow.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index c8e7249..93024ac 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -468,10 +468,11 @@ gdk_window_class_init (GdkWindowObjectClass *klass)
   /* Properties */
   g_object_class_install_property (object_class,
                                    PROP_CURSOR,
-                                   g_param_spec_pointer ("cursor",
-                                                         P_("Cursor"),
-                                                         P_("Cursor"),
-                                                         G_PARAM_READWRITE));
+                                   g_param_spec_boxed ("cursor",
+                                                       P_("Cursor"),
+                                                       P_("Cursor"),
+                                                       GDK_TYPE_CURSOR,
+                                                       G_PARAM_READWRITE));
 
   /**
    * GdkWindow::pick-embedded-child:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]