How to read a structure in a python Glib Array?



Hi all,

  - Rhythmbox last year switched signals from handling gvaluearray to garray's.

I believe this is in response to this bug-report:

 - https://bugzilla.redhat.com/show_bug.cgi?id=872851

A change was made to pygobject here:

 - https://mail.gnome.org/archives/commits-list/2013-January/msg00571.html

One of the signals I need to trap is entry-changed:

 - https://developer.gnome.org/rhythmbox/2.98/RhythmDB.html#RhythmDB-entry-changed

This passes a Glib.Array (GArray) containing RhythmDBEntryChange structures.

Thus to my question - in python, I can connect to the entry-changed structure and can see that the parameter passed is of type GLib.Array.  How do I pull from this param the array of structures contained therein?

There is SO question here:

 - http://stackoverflow.com/questions/16618456/how-can-i-work-with-a-glib-array-in-python

... but no answers as yet.  Any thoughts anyone?

thanks

David


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