Re: gperl_try_convert_enum() from perl



Torsten Schoenfeld <kaffeetisch gmx de> writes:

How would such an interface look like?

I had in mind something like g_enum_get_value_by_name (not presently
wrapped is it?), but accepting the perl variations of "-" and "_" and
nicks and names together,

    $val = Gtk2::SomeEnum->get_value_by_perlname('fooish_bar')

Return would be an integer or undef -- or empty list of values instead
of undef, I'm never sure when which of those two makes more sense in
various contexts.

But maybe the Gtk2::SomeEnum->list_values is enough for now.



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