[PATCH] unindent disables task buttons fix



Hi,

Another tiny patch to disable selection updates in the unindent function
as it is done in the indent function before manipulating tasks. Without
it the selection is cleared when a task is unindented, resulting in the 
buttons for indent/unindent/moveup/movedown being greyed out.

Regards,
Maurice.

-- 
Maurice van der Pot

Gentoo Linux Developer   griffon26 gentoo org     http://www.gentoo.org
Creator of BiteMe!       griffon26 kfk4ever com   http://www.kfk4ever.com

Index: src/planner-task-tree.c
===================================================================
--- src/planner-task-tree.c	(revision 846)
+++ src/planner-task-tree.c	(working copy)
@@ -3134,6 +3134,8 @@
 			_("Unindent tasks"));
 	}
 	
+	task_tree_block_selection_changed (tree);
+
 	for (l = unindent_tasks; l; l = l->next) {
 		MrpTask  *sibling;
 		gboolean  before;
@@ -3157,7 +3159,6 @@
 	path = planner_gantt_model_get_path_from_task (PLANNER_GANTT_MODEL (model), 
 						       unindent_tasks->data);
 
-	task_tree_block_selection_changed (tree);
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
 	gtk_tree_selection_select_path (selection, path);
 	task_tree_unblock_selection_changed (tree);

Attachment: pgpXTjUKIRfZM.pgp
Description: PGP signature



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