Re: [Banshee-List] Plugin Development
- From: Gabriel Burt <gabriel burt gmail com>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] Plugin Development
- Date: Mon, 14 Dec 2009 19:39:56 -0800
I would avoid adding an entire tab to Preferences just for one int pref.
I would look at
src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs in
the InstallPreferences and UninstallPreferences methods for an example
of how to add single entries to prefs.
Gabriel
On Mon, Dec 14, 2009 at 4:08 PM, kristopher_d
<kristopher dick+banshee gmail com> wrote:
>
> That got me going, and my extension is now functional. Now I'm having
> trouble wrapping my head around preferences. I have a single integer that
> needs to be configurable to meet my 1.0 design goals of replacing a python
> script. Right now I'm storing that value in an xml file, which is less than
> ideal. My extension is not a source, but rather a remote control plugin.
> I'd like to add a tab to the preferences dialog (perhaps "Remote Controls")
> but don't see any existing extensions that do this. I'd appreciate guidance
> (even if only a shove in the right direction).
>
> Code is still at https://launchpad.net/banshee-remote-plugin. The Trunk and
> 1.0 series are synchronized at the moment.
>
>
> Bertrand Lorentz wrote:
>>
>> The build action for the .addin.xml should be set to "Embed as
>> resource".
>> After recompiling, you should then copy the .dll to the
>> ~/.config/banshee-1/addins/ directory to make it available only for your
>> user, or to /usr/lib/banshee-1/Extensions/ to make it available for the
>> whole system.
>> Those directories are scanned by banshee on start-up, but the .dll need
>> to have the .addin.xml included to be detected.
>>
>
> --
> View this message in context: http://old.nabble.com/Plugin-Development-tp26653589p26780288.html
> Sent from the Banshee mailing list archive at Nabble.com.
>
> _______________________________________________
> banshee-list mailing list
> banshee-list gnome org
> http://mail.gnome.org/mailman/listinfo/banshee-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]