[Vala] list_style_properties



Hi all:

I'm trying to read the widget's current style, and wanted to use the method widget.list_style_properties(uint n_props).

The problem is that the definition in GTK official documentation

http://developer.gnome.org/gtk/2.24/GtkWidget.html#gtk-widget-class-list-style-properties

states that the n_props value is a pointer to an integer, where the function will store the number of properties in the list. But Vala's documentation (and the compiler) expects an integer as input:

http://valadoc.org/gtk+-2.0/Gtk.Widget.list_style_properties.html

The same for the output value: it should be an array, but in Vala seems to be a single ParamSpec.

So... is the VAPI file incorrect, and the method should be?

public static weak ParamSpec[] <http://valadoc.org/gobject-2.0/GLib.ParamSpec.html> *list_style_properties <http://valadoc.org/gtk+-2.0/Gtk.Widget.list_style_properties.html>* (out uint <http://valadoc.org/glib-2.0/uint.html> n_properties)

Or am I mistaken?

Thanks.

--
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]