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 534177 - Invalid description of the interface g_cclosure_marshal_STRING__OBJECT_POINTER
Invalid description of the interface g_cclosure_marshal_STRING__OBJECT_POINTER
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.16.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-05-21 11:12 UTC by Areg Beketovski
Modified: 2008-05-25 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Areg Beketovski 2008-05-21 11:12:36 UTC
Documentation 
Section:
http://www.gtk.org/api/2.6/glib/gobject-Closures.html#g-cclosure-marshal-STRING--OBJECT-POINTER

1.  The description of the interface contains the following text: "A marshaller for a GCClosure with a callback of type void (*callback) (gpointer instance, GObject* arg1, gpointer user_data)." The return type of the cаllbаck should be "gchar*" not "void".

2. The parameter "return_value" is defined as "return_value : ignored", whereas this is where the returned string value should be stored.

Correct version:
1. A marshaller for a GCClosure with a callback of type gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).

2. return_value : a GValue, which can store the returned string

Other information:
The detailed issue description can be found at: 

http://linuxtesting.org/results/report?num=D0081
Comment 1 Matthias Clasen 2008-05-25 19:54:23 UTC
2008-05-25  Matthias Clasen  <mclasen@redhat.com>

        * gobject/tmpl/gclosure.sgml: Fix docs for
        g_cclosure_marshal_STRING__OBJECT_POINTER. (#534177, Areg Beketovski)