[tomboy-list] converting Plugins to Addins

Sanford Armstrong sanfordarmstrong at gmail.com
Thu Sep 13 07:14:21 PDT 2007


It was a simple typo.  On line 30, replace "TasksListAddin" with
"TaskListAddin".

There are a few other compilation errors.  Make sure to change
Initialize, Shutdown, and OnNoteOpened to be public instead of
protected.

It compiles after those changes, but you need to also fix related
typos in the .addin.xml file.  Make sure to be consistent with
capitialization, too.

The addin seems to work to some level once it's installed; I haven't
played with it too much.

I did get a crash when enabling the addin after following these steps
(but couldn't reproduce):
1. Quit Tomboy
2. Copy addin to ~/.tomboy/addins/
3. Start Tomboy
4. Open prefs, go to addins tab
5. Enable addin

If you see anything weird like this, don't hesitate to let us know!  :-)

Best,
Sandy

On 9/12/07, Sanford Armstrong <sanfordarmstrong at gmail.com> wrote:
> The compiler is telling you to check out line 30.  Try removing the ":
> base()" in the constructor method signature.  Sorry I don't have time
> to mess with it more thoroughly right now.  Have fun!
>
> Sandy
>
> On 9/12/07, Matt Price <matt.price at utoronto.ca> wrote:
> > Hi,
> >
> > i'm new to tomboy and to C# (in fact, not much of a coder at all) and am
> > trying to use the TasksList plugin with the version of tomboy that ships
> > with ubuntu gutsy (currently 0.7.7).  This isn't the
> > currently-switched-off task functionality you've been working on, but a
> > much less ambitious third-party plugin:
> > http://www.ediweissmann.com/taskslist/
> > though ignorant of c# i tried following the instructions at
> > http://live.gnome.org/Tomboy/HowToCreateAddins
> > but am unable to compile the addin.  The error message, which is
> > produced immediately, is :
> >
> > $ gmcs -debug -out:TasksList.dll -target:library -pkg:tomboy-addins
> > -r:Mono.Posix TasksList.cs -resource:TasksList.addin.xml
> > TasksList.cs(30,24): error CS1520: Class, struct, or interface method
> > must have a return type
> > Compilation failed: 1 error(s), 0 warnings
> >
> > ----
> > so i guess there's a syntax error somewhere. i've attached the .cs
> > and .xml files; is the error obvious to y'all?  All help much
> > appreciated.
> >
> > I might add that one reason i want this is to get better syncing with
> > evolution -- i'm hoping i can copy some of the Evolution plugin code to
> > generate a ToDo item out of this plugin's todo note, and eventually i'd
> > also like to be able to attach other kinds of evolution objects to notes
> > -- contacts especially.  And if i could get the Reminder plugin to
> > compile as an addin, it would be nice to use that plugin to generate a
> > little calendar in evolution... i'd just like to see a more complete
> > integration of my desktop tools.
> >
> > anyway, thanks much,
> >
> > matt
> >
> >
> > --
> > Matt Price
> > History Dept
> > University of Toronto
> > matt.price at utoronto.ca
> >
> > _______________________________________________
> > Tomboy-list mailing list
> > Tomboy-list at lists.beatniksoftware.com
> > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com
> >
> >
> >
>


More information about the Tomboy-list mailing list