[PATCH] unindent disables task buttons fix

Maurice van der Pot <griffon26-bCGDfOjggl9Wk0Htik3J/[email protected]>
Newsgroups gmane.comp.gnome.apps.planner.devel
Message-ID <[email protected]>
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   [email protected]     http://www.gentoo.org
Creator of BiteMe!       griffon26-bCGDfOjggl9Wk0Htik3J/[email protected]   http://www.kfk4ever.com

_______________________________________________
Planner-dev-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/planner-dev-list
planner-unindent-disables-task-buttons-fix.patch (text/plain, 722 B)
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);
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)

iD8DBQFGp5zNMGnpIbeahxwRAj2yAJ46rSPwmhOnQyr8fUmPT4k2dUvMVgCfWcP/
T1DPiz7lkN+8o+/Lm9Hr9bQ=
=j3mW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.