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 554239 - add gtk_object_get_object_flags accessor
add gtk_object_get_object_flags accessor
Status: RESOLVED DUPLICATE of bug 69872
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-29 00:22 UTC by Colin Walters
Modified: 2008-09-29 19:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add accessor for object flags (1.02 KB, patch)
2008-09-29 00:23 UTC, Colin Walters
none Details | Review

Description Colin Walters 2008-09-29 00:22:47 UTC
For introspection work we need accessor functions for things which are currently only available through C macros.
Comment 1 Colin Walters 2008-09-29 00:23:46 UTC
Created attachment 119556 [details] [review]
add accessor for object flags

I named it _get_object_flags because GtkTreeModel already has a _get_flags method, and it seems not unlikely that some user subclasses of GtkObject out there have one too.
Comment 2 Owen Taylor 2008-09-29 01:04:33 UTC
There are no-non-deprecated GtkObject flags; maybe better to put it on GtkWidget?
(There will never be any new GtkObject subclasses that might put different things in flags, either, so don't worry about that.)

Alternatively, maybe there should just be accessors for the individual flag bits?
Comment 3 Christian Dywan 2008-09-29 14:19:43 UTC
Deprecation of flags and introduction of accessors is already in progress:

http://bugzilla.gnome.org/show_bug.cgi?id=69872
Comment 4 Colin Walters 2008-09-29 19:09:21 UTC

*** This bug has been marked as a duplicate of 69872 ***