[ubuntu-mono] [Bug 664963] Re: Tomboy shows templates as notes

Sandy Armstrong sanfordarmstrong at gmail.com
Sat Oct 23 13:41:05 UTC 2010


Yeah, this is clearly a bug in the patch:

++				var menuItems = manager.Notes
++					.Where (n => !n.IsSpecial)
++					.OrderByDescending (n => n.ChangeDate)
++					.Take (10)
++					.Select (n => new NoteMenuItem (n, n.IsPinned))
++					.ToArray ();

There is no check at all for whether the note is a template.  You guys
need to add something like:

Tag template_tag = TagManager.GetOrCreateSystemTag
(TagManager.TemplateNoteSystemTag);

and change the Where clause to:

++                                      .Where (n => !n.IsSpecial &&
!n.ContainsTag(template_tag))

-- 
Tomboy shows templates as notes
https://bugs.launchpad.net/bugs/664963
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to tomboy in ubuntu.

Status in “tomboy” package in Ubuntu: New

Bug description:
Binary package hint: tomboy

Hello

Maybe after I installed and synced with Tomdroid (https://launchpad.net/tomdroid) I see my templates as notes in Tomboy.

On Tomboy Web and in Tomdroid these notes aren't visible, only in Tomboy.

I cannot delete them.

So right now I can see all my regular notes + <Notebookname> Notebook Template (old) + <Notebookname2> Notebook Template.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: tomboy 1.4.0-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Oct 22 08:57:46 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_DK.utf8
 SHELL=/bin/bash
SourcePackage: tomboy






More information about the Ubuntu-mono mailing list