GNOME Bugzilla – Bug 624087
Missing accessor for GdkCursor.type
Last modified: 2010-07-25 10:48:46 UTC
For building PyGtk against Gtk-3.0 [1] Probably should be gdk_cursor_get_cursor_type [1] http://mail.gnome.org/archives/gtk-devel-list/2010-July/msg00005.html
Explain how pygtk needs the cursor type ?
1) PyGtk wrapped GdkCursor.type. To maintain compatibility when built against 3.0, I delegate access where possible to either accessor functions or GObject properties. This works in many many cases because where GSEALED members have been removed other ways to access the data have been added. E.g. in python, GdkWidget.window now calls gtk_widget_get_window / g_object_get(w, "window" &window, NULL). 2) When doing str() or repr() on a GdkCursor we print the enum value of the type field, i.e. using g_enum_get_value.
Created attachment 166048 [details] [review] Add gdk_cursor_get_cursor_type
Review of attachment 166048 [details] [review]: ::: gdk/gdkcursor.c @@ +105,3 @@ + * @cursor: a #GdkCursor + * gdk_cursor_get_cursor_type: +/** missing Since: annotation.
Created attachment 166355 [details] [review] Add gdk_cursor_get_cursor_type Adds Since: annotation
Review of attachment 166355 [details] [review]: looks good. please, commit after adding the new symbol to the sections.txt file for gdk
Comitted to 2.22, should I commit to master too?
(In reply to comment #7) > Comitted to 2.22, should I commit to master too? yes.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.