Details

[Home]

Issue of the Standard # D0081

Brief

Invalid description of the interface g_cclosure_marshal_STRING__OBJECT_POINTER

Detailed Description

  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.

Problem location(s) in the standard

Linux Standard Base Desktop Specification 3.1, Chapter 12. Libraries, 12.2 Interfaces for libglib-2.0; http://www.gtk.org/api/2.6/glib/gobject-Closures.html#g-cclosure-marshal-STRING--OBJECT-POINTER

Possible solutions

  1. The text should be updated in the following way: A marshaller for a GCClosure with a callback of type gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).
  2. The parameter description should be changed to: return_value : a GValue, which can store the returned string

Accepted

Gnome Bugzilla 534177

Status

Fixed in glib 2.18

[Home]