Re: [Rhythmbox-devel] Magnatune catalog/purchasing plugin
- From: Adam Zimmerman <adam_zimmerman sfu ca>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Magnatune catalog/purchasing plugin
- Date: Fri, 16 Jun 2006 18:50:11 -0700
On Fri, 2006-16-06 at 21:22 +1000, James "Doc" Livingston wrote:
> Basically what you need to do is derive from rb.BrowserSource instead of
> rb.Source. You don't need to worry about query models (it's handled
> automatically), just "entry_type=self.entry_type" to gobject.new
> instead.
OK, I did that, and now when I run rhythmbox, it says:
Traceback (most recent call last):
File "/home/adam/.gnome2/rhythmbox/plugins/magnatune.py", line 75, in
activate self.source = gobject.new (MagnatuneSource, shell=shell,
name=_("Magnatune"), entry_type=self.entry_type)
TypeError: could not convert value for property `entry_type' from
rhythmdb.EntryType to gpointer
I'm pretty sure the lines leading up to that one haven't been changed:
def activate(self, shell):
self.db = shell.get_property("db")
self.entry_type =
rhythmdb.rhythmdb_entry_register_type("MagnatuneEntryType")
self.source = gobject.new (MagnatuneSource, shell=shell,
name=_("Magnatune"), entry_type=self.entry_type)
--
Adam Zimmerman <adam_zimmerman sfu ca>
CREATIVITY - http://mirrors.creativecommons.org/movingimages/Building_on_the_Past.mpg
ALWAYS - http://www.musiccreators.ca/
BUILDS - http://www.ubuntu.com/
ON THE PAST - http://www.theopencd.org/
--
"Humor is a drug which it's the fashion to abuse."
-- William Gilbert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]