Add-in preference dialog

View: New views
3 Messages — Rating Filter:   Alert me  

Add-in preference dialog

by Jenn and Alan Atherton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am modifying the Tomboy-latex add-in, and would like to include a preference dialog.  I cannot find any documentation or examples on how to do this.  I would appreciate any information on how to do this.

Thank you,
Alan Atherton
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Re: Add-in preference dialog

by Sandy Armstrong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alan,

Take a look at some of the add-ins that ship with Tomboy, like Note of
the Day and Bugzilla.  Both of these add preferences.  You just need
to add a line like this in the .addin.xml file:

<Extension path="/Tomboy/AddinPreferences">
                <AddinPreferenceFactory
type="Tomboy.NoteOfTheDay.NoteOfTheDayPreferencesFactory" />
        </Extension>

Then implement AddinPreferenceFactory (which just has one method that
returns a gtk# widget).

If you have any troubles, let me know.  Also, feel free to update or
add new documentation to the wiki.

Sandy

On Sun, Aug 30, 2009 at 11:38 PM, Jenn and Alan
Atherton<theathertons@...> wrote:

> Hello,
>
> I am modifying the Tomboy-latex add-in, and would like to include a
> preference dialog.  I cannot find any documentation or examples on how to do
> this.  I would appreciate any information on how to do this.
>
> Thank you,
> Alan Atherton
> _______________________________________________
> Tomboy-list mailing list
> Tomboy-list@...
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>
>
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Re: Add-in preference dialog

by Jenn and Alan Atherton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sandy,

Thanks for the quick reply.  I did have the thought of looking at other addins, but it didn't occur to me where to look for them.  I was looking for them just in the installed version that comes in the Ubuntu package.  It seems pretty obvious now that it would come with the source.  Serves me right for looking while tired.

- Alan

On Mon, Aug 31, 2009 at 7:50 AM, Sandy Armstrong <sanfordarmstrong@...> wrote:
Hi Alan,

Take a look at some of the add-ins that ship with Tomboy, like Note of
the Day and Bugzilla.  Both of these add preferences.  You just need
to add a line like this in the .addin.xml file:

<Extension path="/Tomboy/AddinPreferences">
               <AddinPreferenceFactory
type="Tomboy.NoteOfTheDay.NoteOfTheDayPreferencesFactory" />
       </Extension>

Then implement AddinPreferenceFactory (which just has one method that
returns a gtk# widget).

If you have any troubles, let me know.  Also, feel free to update or
add new documentation to the wiki.

Sandy

On Sun, Aug 30, 2009 at 11:38 PM, Jenn and Alan
Atherton<theathertons@...> wrote:
> Hello,
>
> I am modifying the Tomboy-latex add-in, and would like to include a
> preference dialog.  I cannot find any documentation or examples on how to do
> this.  I would appreciate any information on how to do this.
>
> Thank you,
> Alan Atherton
> _______________________________________________
> Tomboy-list mailing list
> Tomboy-list@...
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
>
>


_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com