Skip to content

Commit

Permalink
Fixed intendation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rggjan committed May 21, 2010
1 parent 6f55c77 commit 4115468
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public TaskList ContainingTaskList {
/// <summary>
/// Gets the tag attached to this task. Shortcut.
/// </summary>
private TaskTag TaskTag {
public TaskTag TaskTag {
get{ return (TaskTag) Tag; }
set{ Tag = value; }
}
Expand Down Expand Up @@ -350,6 +350,8 @@ public void Toggle ()
/// </summary>
public void TagUpdate ()
{
//TaskTag.Indent = 0;
//TaskTag.Priority = Notes.;
ApplyTag (TaskTag);

if (CheckBox != null && CheckBox.Active) {
Expand Down
6 changes: 5 additions & 1 deletion TaskList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public TaskList (Note note, List<Task> 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;
Expand All @@ -143,7 +142,12 @@ public TaskList (Note note, List<Task> 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);
}
}
Expand Down

0 comments on commit 4115468

Please sign in to comment.