Re: [Rhythmbox-devel] registering plugin



-- 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]