Re: Gtk3: How to invoke gtk_stock_list_ids?



On 14.12.2011 20:41, Hubert Mauchle wrote:
Can't locate object method "list_ids" via package "Gkt3::Stock" (perhaps
you forgot to load "Gkt3::Stock"?) at run_stock.pl line 4.

Since there is no GtkStock class, the functions gtk_stock_* are mapped to Gtk3::stock_*. So:

  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.



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