[tomboy] Expose properties for commonly accessed tags.



commit fd730587c6c42c5a3471abe868e677e87844654d
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sat May 9 11:06:19 2009 -0700

    Expose properties for commonly accessed tags.
---
 Tomboy/NoteTag.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Tomboy/NoteTag.cs b/Tomboy/NoteTag.cs
index 464fac1..1baf4aa 100644
--- a/Tomboy/NoteTag.cs
+++ b/Tomboy/NoteTag.cs
@@ -506,6 +506,10 @@ namespace Tomboy
 			InitCommonTags ();
 		}
 
+		public NoteTag UrlTag { get; private set; }
+		public NoteTag LinkTag { get; private set; }
+		public NoteTag BrokenLinkTag { get; private set; }
+
 		void InitCommonTags ()
 		{
 			NoteTag tag;
@@ -614,6 +618,7 @@ namespace Tomboy
 			        ContrastPaletteColor.Grey;
 			tag.CanActivate = true;
 			Add (tag);
+			BrokenLinkTag = tag;
 
 			tag = new NoteTag ("link:internal");
 			tag.Underline = Pango.Underline.Single;
@@ -621,6 +626,7 @@ namespace Tomboy
 			        ContrastPaletteColor.Blue;
 			tag.CanActivate = true;
 			Add (tag);
+			LinkTag = tag;
 
 			tag = new NoteTag ("link:url");
 			tag.Underline = Pango.Underline.Single;
@@ -628,6 +634,7 @@ namespace Tomboy
 			        ContrastPaletteColor.Blue;
 			tag.CanActivate = true;
 			Add (tag);
+			UrlTag = tag;
 		}
 
 		public static bool TagIsSerializable (Gtk.TextTag tag)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]