GNOME Bugzilla – Bug 557779
In documentation GdkAtom is declared as a structure instead of a pointer
Last modified: 2018-05-02 14:35:26 UTC
In http://library.gnome.org/devel/gdk/unstable/gdk-Properties-and-Atoms.html#GdkAtom typedef struct _GdkAtom GdkAtom; In gdk/gdktypes.h typedef struct _GdkAtom *GdkAtom; In the documentation, GdkAtom is not a pointer but a structure. It's harmless, but after reading the documentation I was wondering how I can safely compare 2 GdkAtom. So I search all around the Gdk/Gtk source what was the content of the struct _GdkAtom to be sure the struct was mapped to a simple scalar like an XID. I ask the question on IRC (#gtk+ on irc.gnome.org) and hopefuly "ebassi" show me the little star which is so helpful. To sum up, the documentation should not miss the pointer type declaration, specify that GdkAtom are unique, and can be compared with == .
Fixed bug title s/GtkAdom/GtkAtom. Btw, this issue is still valid.
same cause as Bug 779501, an (errant?) override in the docs: https://git.gnome.org/browse/gtk+/tree/docs/reference/gdk/gdk3-overrides.txt?h=gtk-3-22#n2
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/302.