Re: 0.13.2 to 0.13.3 API change for plugins

[email protected]
Newsgroups gmane.comp.gnome.apps.rhythmbox.devel
Message-ID <CAG42Q=immq7yifyMxKFD_VxYn29jqs89p8s3GXxsHJrxnXr8ww@mail.gmail.com>
I know it's what I need but I want this to work in both versions, before
and after the API change in 0.13.2.

Will "selected_page" work in rhythmbox 0.12.x?



On Fri, Feb 10, 2012 at 12:25 AM, Lachlan <[email protected]> wrote:

> selected_page is what you want.
> On Feb 10, 2012 1:39 PM, <[email protected]> wrote:
>
>>  One of my plugins works fine with pre 0.13 rhythmbox and I recently
>> upgraded to 0.13.3.
>>
>> Upon using 0.13.3 I have found that my plugin does not work on the
>> following line:
>>
>> shell.get_property("selected_source")
>>
>> and that I should use shell.get_property("selected_page") instead (
>> http://code.google.com/p/rhythmbox-coverflow-plugin/issues/detail?id=3#c1
>> ).
>>
>> I'd like everyone to use this plugin if they have a pre-0.13.2 version
>> and newer. What is the best way to do this? I'm pretty new to python but
>> how can I get the version of rhythmbox to check the two different versions
>> in if blocks to run if it is pre-0.13.2 and post-0.13.2?
>>
>> Alternatively, I see there is a mimic pre-processor (
>> http://code.google.com/p/pypreprocessor/) that may do what I want but
>> how do I check for the version of rhythmbox using this macro, what is the
>> macro name for the rhythmbox version?
>>
>> Thanks for your help.
>>
>> _______________________________________________
>> rhythmbox-devel mailing list
>> [email protected]
>> http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
>>
>>

_______________________________________________
rhythmbox-devel mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/rhythmbox-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.