From 4115468e9a501db00b0aed879325543445bd4711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20R=C3=BCegg?= Date: Fri, 21 May 2010 19:34:02 +0200 Subject: [PATCH] Fixed intendation bug --- Task.cs | 4 +++- TaskList.cs | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Task.cs b/Task.cs index a367e55..cf9e87a 100644 --- a/Task.cs +++ b/Task.cs @@ -109,7 +109,7 @@ public TaskList ContainingTaskList { /// /// Gets the tag attached to this task. Shortcut. /// - private TaskTag TaskTag { + public TaskTag TaskTag { get{ return (TaskTag) Tag; } set{ Tag = value; } } @@ -350,6 +350,8 @@ public void Toggle () /// public void TagUpdate () { + //TaskTag.Indent = 0; + //TaskTag.Priority = Notes.; ApplyTag (TaskTag); if (CheckBox != null && CheckBox.Active) { diff --git a/TaskList.cs b/TaskList.cs index e306353..1564834 100644 --- a/TaskList.cs +++ b/TaskList.cs @@ -121,7 +121,6 @@ public TaskList (Note note, List tasks, String name, Gtk.TextIter start) ContainingNote = note; //TODO merge this with things below Name = name; - TaskListTag tag = (TaskListTag)ContainingNote.TagTable.CreateDynamicTag ("tasklist"); //TextIter iter; @@ -143,7 +142,12 @@ public TaskList (Note note, List tasks, String name, Gtk.TextIter start) { Children.Add (task); task.RemoveTag (task.ContainingTaskList.Tag); + task.ContainingTaskList = this; + + // This is required for intendation + this.Tag.Priority = 0; + task.ApplyTag (this.Tag); } }