Re: [Rhythmbox-devel] RhythmDB::entry-extra-metadata-gather and python plugins
- From: "James \"Doc\" Livingston" <doclivingston gmail com>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] RhythmDB::entry-extra-metadata-gather and python plugins
- Date: Mon, 26 Feb 2007 23:19:49 +1100
On Sat, 2007-02-24 at 01:53 -0300, Claudio Saavedra wrote:
> I've tried to provide extra metadata to rhythmbox from a Python plugin,
> by simply connecting a handler to the
> RhythmDB::entry-extra-metadata-gather signal, so I could insert a new
> key-value par to the metadata hash table.
>
> However, it seems like I can't really modify the metadata hashtable from
> python, because in the callback I connected, metadata is only a
> gobject.GBoxed, for which repr() reports a "<GHashTable at 0x81491c0>".
<snip>
> And therefore, metadata is not modifiable from the python plugin, and it
> seems to me that this signal renders useless in python (as the main idea
> behind it is to be able to insert key-value pairs to the metadata
> table).
Fixing this requires either using a different type instead of
GHashTable, or chaning the metadata-gathering to use a different
mechanism.
I've filed bug 412210[0] about this, and attached a patch which uses a
new class RBStringValueMap, which can be used from python. From simple
testing it appears to work.
[0] http://bugzilla.gnome.org/show_bug.cgi?id=412210
Cheers,
James "Doc" Livingston
--
[Request for the names of the kings who became Nazgul]
Dashur, Daensir, Prantsur, Vicksinn, Comuet, Cupuid, Dondor, Blitsun,
and Rodulf, Witch-King of Angmar. -- Joseph Michael Bay
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]