After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624221 - Gtk-2.21 Missing accessor for GdkDevice.num_axis
Gtk-2.21 Missing accessor for GdkDevice.num_axis
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GdkDevice
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Carlos Garnacho
Depends on:
Blocks: 597610
 
 
Reported: 2010-07-13 08:09 UTC by John Stowers
Modified: 2010-07-25 00:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add gdk_device_get_n_axes (2.91 KB, patch)
2010-07-17 00:18 UTC, John Stowers
none Details | Review

Description John Stowers 2010-07-13 08:09:53 UTC
Corresponding function on master is gdk_device_get_n_axes
Comment 1 John Stowers 2010-07-17 00:18:14 UTC
Created attachment 166049 [details] [review]
Add gdk_device_get_n_axes
Comment 2 Emmanuele Bassi (:ebassi) 2010-07-19 21:38:33 UTC
Review of attachment 166049 [details] [review]:

instead of having the same function copied in three backends, how about having it in the common code?
Comment 3 John Stowers 2010-07-22 04:44:18 UTC
(In reply to comment #2)
> Review of attachment 166049 [details] [review]:
> 
> instead of having the same function copied in three backends, how about having
> it in the common code?

AFAICT there was not a place to put such common code in 2.2X. Other simple functions like gdk_device_get_name are also duplicated.

The device stuff in 3.X is much more sensible, so I didn't think it worth the effort to create a place to put common input functions just for this code.
Comment 4 Emmanuele Bassi (:ebassi) 2010-07-22 09:14:23 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Review of attachment 166049 [details] [review] [details]:
> > 
> > instead of having the same function copied in three backends, how about having
> > it in the common code?
> 
> AFAICT there was not a place to put such common code in 2.2X. Other simple
> functions like gdk_device_get_name are also duplicated.
> 
> The device stuff in 3.X is much more sensible, so I didn't think it worth the
> effort to create a place to put common input functions just for this code.

fair enough.

please, commit after adding the new symbols to the section.txt for gtk-doc.
Comment 5 John Stowers 2010-07-25 00:38:26 UTC
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.