Re: Gtk3: How to invoke gtk_stock_list_ids?
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Gtk3: How to invoke gtk_stock_list_ids?
- Date: Fri, 06 Jan 2012 23:28:01 +0100
On 15.12.2011 10:50, Torsten Schoenfeld wrote:
my @stock_items = @{Gtk3::stock_list_ids ()};
Yeah, that's pretty ugly. But there's not much that
gobject-introspection could do differently here. We could manually
re-map these functions in Gtk3 to Gtk3::Stock::*, however. Would that be
worthwhile?
Also, the dereference is needed because Gtk3::stock_list_ids returns an
array ref currently, but I think I'll change it to return a list.
I just committed a change implementing the move to Gtk3::Stock::* and
also the change to the return value semantics of list_ids(). So it's now:
my @stock_items = Gtk3::Stock::list_ids ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]