~ted/ubuntu/lucid/tomboy/with-patch

« back to all changes in this revision

Viewing changes to Tomboy/NoteBuffer.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2007-07-16 10:26:35 UTC
  • mfrom: (1.1.21 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20070716102635-0wzk26jo50csob7b
Tags: 0.7.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
                                active_tags.Remove (tag);
110
110
                        }
111
111
                }
 
112
                
 
113
                /// <summary>
 
114
                /// Returns the specified DynamicNoteTag if one exists on the TextIter
 
115
                /// or null if none was found.
 
116
                /// </summary>
 
117
                public DynamicNoteTag GetDynamicTag (string tag_name, Gtk.TextIter iter)
 
118
                {
 
119
                        Gtk.TextTag [] tags = iter.Tags;
 
120
                        foreach (Gtk.TextTag tag in iter.Tags) {
 
121
                                DynamicNoteTag dynamic_tag = tag as DynamicNoteTag;
 
122
                                if (dynamic_tag != null &&
 
123
                                                dynamic_tag.ElementName.CompareTo (tag_name) == 0)
 
124
                                        return dynamic_tag;
 
125
                        }
 
126
                        
 
127
                        return null;
 
128
                }
112
129
 
113
130
                public void OnTagApplied (object o, Gtk.TagAppliedArgs args)
114
131
                {