[Planner Dev] Fix for patch for the Link button patch against 0.11 CVS.





Richard,
	I just checked out the latest CVS copy (from anon so
I had to wait a bit as the CVS server was playing up and out
of sync), and the link button is around the wrong way from
how my original patch did it i.e. the expected link isn't
top-down visually but bottom up visually.

Attached is a patch to the current CVS to fix this orientation ;)

I will work on a patch to offer a more complex options for
that task link button/menu but only once I work out how to handle
extra accelerators and stuff.

Rgds,
Lincoln.


Richard Hult wrote:
Hi,

I just committed the "Link tasks" patch, it rocks! Thanks a lot!

/Richard

Index: src/planner-task-tree.c
===================================================================
RCS file: /cvs/gnome/planner/src/planner-task-tree.c,v
retrieving revision 1.10
diff -u -b -B -p -r1.10 planner-task-tree.c
--- src/planner-task-tree.c	14 Feb 2004 02:21:21 -0000	1.10
+++ src/planner-task-tree.c	16 Feb 2004 14:17:50 -0000
@@ -2092,11 +2092,11 @@ planner_task_tree_link_tasks (PlannerTas
 		return;
 	}
 
-	target_task = list->data;
+	task = list->data;
 	for (l = list->next; l; l = l->next) {
 		GError *error = NULL;
 
-		task = l->data;
+		target_task = l->data;
 
 		if (!mrp_task_add_predecessor (target_task,
 					       task,
@@ -2113,7 +2113,7 @@ planner_task_tree_link_tasks (PlannerTas
 			g_error_free (error);
 		}
 		
-		target_task = task;
+		task = target_task;
 	}
 	
 	g_list_free (list);


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