Re: gperl_try_convert_enum() from perl
- From: Kevin Ryde <user42 zip com au>
- To: Torsten Schoenfeld <kaffeetisch gmx de>
- Cc: gtk-perl-list gnome org
- Subject: Re: gperl_try_convert_enum() from perl
- Date: Sat, 09 Jan 2010 09:25:35 +1100
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]