Re: GtkBuilder Public API - Last call

Tim Janik wrote:
> On Wed, 13 Jun 2007, Johan Dahlin wrote:
>> Samuel Cormier-Iijima wrote:
>>>     gint         gtk_builder_enum_from_string        (GType        
>>> type,
>>>                                                       const char  
>>> *string);
>>> Just curious, but why do you have gtk_builder_enum_from_string when
>>> something
>>> similar already exists in GObject as g_enum_get_value_by_nick/name?
>> Since it accepts a nick, name or number, it's using
>> g_enum_get_value_by_nick/name internally.
> sounds like a good candidate for a convenience function to be moved
> down to libgobject.

Filed as

It'll probably makes sense to add a similar function for flags.

Johan Dahlin <jdahlin async com br>
Async Open Source

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