Re: GtkBuilder Public API - Last call

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
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.

Johan Dahlin <jdahlin async com br>


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