Re: [Rhythmbox-devel] registering plugin
- From: Richard Henwood <rjhenwood yahoo co uk>
- To: rhythmbox-devel gnome org, Jonathan Matthew <jonathan d14n org>
- Subject: Re: [Rhythmbox-devel] registering plugin
- Date: Thu, 6 Jan 2011 22:03:12 +0000 (GMT)
-- On Thu, 6/1/11, Jonathan Matthew <jonathan d14n org> wrote:
> From: Jonathan Matthew <jonathan d14n org>
<snip>
>
> You can work around it in this case with something like
> this:
>
> if hasattr(self.db, 'entry_register_type'):
> self.entry_type =
> self.db.entry_register_type("GutenbergEntryType")
> else:
> self.entry_type =
> GutenbergEntryType()
>
> self.db.register_entry_type(self.entry_type)
>
> if you want to maintain compatibility with older versions
> of rhythmbox.
>
This works a charm - thanks Jonathan!
r,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]