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 311536 - use G_CONST_RETURN
use G_CONST_RETURN
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Documentation
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-25 21:13 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2005-07-25 21:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2005-07-25 21:13:11 UTC
the following methods should imho use G_CONST_RETURN
gtk_*_get_model()
gtk_combo_box_get_popup_accessible()
gtk_widget_get_accessible()

the last need docs at all.
Comment 1 Owen Taylor 2005-07-25 21:24:17 UTC
We don't use const for refcounted objects in general. (After all, 
you then couldn't *ref* those objects, unless g_object_ref() took
a const GObject. And that would be sort of strange for a method
that modifies the reference count to take a const object.