Thanks for the patch, but this can be done even without adding anything to the library. Something like:
/** * Workbook: * @wb_views: (content-type WorkbookView): **/ I'll commit that later today. Jean Le mercredi 06 novembre 2013 à 11:36 +0200, Anatoly Asviyan a écrit : > Hi Jean > > Thanks for explanation.I agree that a clean way is to tell > introspection what types each GPtrArray stores, but I do not know how > to do it. So I wrote two access functions that return explicit type - > and it worked! > > > In python console, you can do smth like this > > > from gi.repository import Gnm > wb=Gnm.App.workbook_get_by_index(0) > v=wb.get_view(0) > wbcg=Gnm.wb_view_get_control(v,0) > sheet=Gnm.wb_control_cur_sheet(wbcg) > sheet_view=Gnm.wb_control_cur_sheet_view(wbcg) > > > The patch is here > http://sourceforge.net/p/fborg/code/HEAD/tree/gnumeric/gir-exports-1.patch > > > -- > Regards, Anatoly _______________________________________________ gnumeric-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnumeric-list
