Re: g_base_info_iterate_attributes always fails.



Cool. Missed that one because it is not in the Vala bindings, due to the use of g_constant_info_free_value() as a finalizer.


On Sun, Jun 22, 2014 at 6:45 PM, Simon Feltman <s feltman gmail com> wrote:
Hi,

On Sun, Jun 22, 2014 at 4:58 PM, Adam Stark <llamadonica gmail com> wrote:
> Hi all,
>
> I'm writing GLib bindings for dart using gobject introspection, and have
> come across a problem: g_base_info_iterate_attributes always seems to return
> false.

g_base_info_iterate_attributes is for generic metadata in the form:

 * Attributes: (org.foo value)

AFAIK there isn't any actual use of this in the GNOME stack.

> I was hoping to use it to find the value of a ConstantInfo. What is
> the appropriate way to do this?

I think you might be looking for g_constant_info_get_value:
https://developer.gnome.org/gi/stable/gi-GIConstantInfo.html#g-constant-info-get-value

-Simon



--
Adam Stark


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