After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138595 - Task up and down should work on selections.
Task up and down should work on selections.
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
unspecified
Other All
: Normal enhancement
: 0.12
Assigned To: Lincoln Phipps
planner-maint
Depends on:
Blocks:
 
 
Reported: 2004-03-31 08:02 UTC by Lincoln Phipps
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
This adds this new feature. (4.01 KB, patch)
2004-04-06 01:06 UTC, Lincoln Phipps
none Details | Review
Same as before but with g_list_free(list) (4.18 KB, patch)
2004-04-06 01:34 UTC, Lincoln Phipps
none Details | Review
Same as before but with formatting changes and for planner-task-tree.c v1.15 (4.76 KB, patch)
2004-04-07 06:14 UTC, Lincoln Phipps
none Details | Review
The committed patch (8.11 KB, patch)
2004-04-08 15:30 UTC, Richard Hult
none Details | Review
Extra tweak to fix task down problem. Apply on top of the current CVS patch. (2.62 KB, patch)
2004-04-15 03:17 UTC, Lincoln Phipps
none Details | Review

Description Lincoln Phipps 2004-03-31 08:02:23 UTC
Select a task selection. Click up or down. Only the 1 task moves.
Not happy. Need ALL selected tasks to move up or down.

*note: I've already patched this so this can be closed once 
the patch is in CVS.

Rgds,
Lincoln.
Comment 1 Lincoln Phipps 2004-04-06 01:06:29 UTC
Created attachment 26384 [details] [review]
This adds this new feature.


Attached is a standalone patch that allows you to select a
range of tasks and do a move up and move down within gantt
and task view.	A very handy feature when rearranging your
schedule

Before only individual tasks could be moved which meant
that shifting your task schedule design could be tedious.

It handles all sane selections including ctrl-clicking a
discountinuous list of tasks (which would be a weird
thing to do in practice but it works anyway).

Rgds,
Lincoln.
Comment 2 Lincoln Phipps 2004-04-06 01:34:31 UTC
Created attachment 26385 [details] [review]
Same as before but with g_list_free(list)


Ha ha... guess what ? - just noticed that there was
no g_list_free(list) at the end of either the planner_task_tree_move_task_up() 

or planner_task_tree_move_task_down() so those have potentially 
been leaking since MrProject.

Attached is version 2 with the required g_list_free(list); !!

Rgds,
Lincoln.
Comment 3 Lincoln Phipps 2004-04-07 06:14:52 UTC
Created attachment 26422 [details] [review]
Same as before but with formatting changes and for planner-task-tree.c v1.15

I use anon CVS so previous patch was out of date (now v1.15 of
planner-task-tree.c was v1.14).

Also used cvs diff -uBp not -ubBp so that the 'b' flag is not 
used so that indenting gets passed across correctly and also simplified 
code a little by removing temptask.
Comment 4 Richard Hult 2004-04-08 15:29:46 UTC
Committed, but there are a few details left to take care of, I think. I added
FIXME comments to the code.

Comment 5 Richard Hult 2004-04-08 15:30:39 UTC
Created attachment 26477 [details] [review]
The committed patch
Comment 6 Lincoln Phipps 2004-04-15 03:17:59 UTC
Created attachment 26674 [details] [review]
Extra tweak to fix task down problem. Apply on top of the current CVS patch.

Task down didn't work right :) Now it does. May not catch all cases but it
works for the expected cases.
Comment 7 Richard Hult 2004-04-15 18:28:59 UTC
Fixed in CVS (might want to open a new bug for the FIXME, but it's not critical).