hmm...

  yep - you are correct.

Looks like the python bindings are not correct - would welcome Jonathan's
view though.

The GLib.Array being passed needs to be mapped to
RhythmDBEntryChange<https://developer.gnome.org/rhythmbox/unstable/RhythmDB.html#RhythmDBEntryChange>

in RB-3.0.gir (rhythmbox 2.99.1)  "<parameter name="changes"
transfer-ownership="none">
              <array name="GLib.Array" c:type="GArray*">
                <type name="gpointer" c:type="gpointer"/>"

That doesnt look correct.

That section in coverart-album is critical to our coverart-browser plugin
since it is used to sync underlying data changes :(


On 26 May 2013 17:48, Mendhak (RBM) <[email protected]> wrote:

> Just noticed that you've got the same problem as me - your
> "changes.values" is resulting in an error:
>
>     AttributeError: 'Array' object has no attribute 'values'
>
>
> https://github.com/fossfreedom/coverart-browser/blob/release-0.8/coverart_album.py#L1061
>  (try a "print changes.values" outside the try-except block)
>
> But is being caught by the except block.  You can see this error if
> you try to "print changes.values" outside the try-except block.  I'm
> also noticing that this works fine in Ubuntu 12.04.  But 13.04 seems
> to have this problem. I have limited knowledge in this area, so I
> can't figure out if this has to do with OS version, Python version, or
> Rhythmbox version.
>
>
>
> On Sun, May 26, 2013 at 2:22 PM, david mohammed <[email protected]>
> wrote:
> > The changes are packed inside a GValueArray
> >
> > Its perhaps easier to give you an example - pop-over to my plugin here
> > and look at the function "_entry_changed_callback" on coverart-album.py
> >
> >  -
> > https://github.com/fossfreedom/coverart-browser
> >
> >
> >
> >
> > _______________________________________________
> > rhythmbox-devel mailing list
> > [email protected]
> > https://mail.gnome.org/mailman/listinfo/rhythmbox-devel
>
_______________________________________________
rhythmbox-devel mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel

Reply via email to