Exemplo n.º 1
0
        void UpdateTaskTagStatuses()
        {
            // FIXME: Should really just create an enumerator class for
            // enumerating a Buffer's TaskTags instead of doing it this
            // way in almost every method.
            Gtk.TextIter iter = Buffer.StartIter;
            iter.ForwardLine();              // Move past the note's title

            do
            {
                TaskTag task_tag = (TaskTag)
                                   Buffer.GetDynamicTag("task", iter);
                if (task_tag == null)
                {
                    continue;
                }

                task_tag.UpdateStatus();
            } while (iter.ForwardLine());
        }