Merge lp://staging/~spinatelli/plank/improve-launcher-managing into lp://staging/~docky-core/plank/plank-dnd

Proposed by Sergio Spinatelli
Status: Rejected
Rejected by: Robert Dyer
Proposed branch: lp://staging/~spinatelli/plank/improve-launcher-managing
Merge into: lp://staging/~docky-core/plank/plank-dnd
Diff against target: 66 lines (+23/-6)
1 file modified
Plank/DragManager.vala (+23/-6)
To merge this branch: bzr merge lp://staging/~spinatelli/plank/improve-launcher-managing
Reviewer Review Type Date Requested Status
Robert Dyer (community) Disapprove
Review via email: mp+54109@code.staging.launchpad.net

Description of the change

The branch improves launcher management (placing launchers on the dock,moving them within the dock and removing them).

To post a comment you must log in.
259. By Sergio Spinatelli

Fix coding style and comment file deletion out

Revision history for this message
Robert Dyer (psybers) wrote :

Style issues:

- Ln 23 - remove blank line
- Lns 35, 54, 62 - make sure space before '+1' or '-1' -> ' + 1' and ' - 1'
- Lns 34/36 - dont need brackets

review: Needs Fixing
Revision history for this message
Robert Dyer (psybers) wrote :

Regarding setting the sort values, instead of doing the other item +1 or -1, I think it might make sense to just swap the sort values of the two items. Only IF adding a new one, do a +-1.

Also this needs a LOT of rethinking in general. You see, if you set the Sort on an item that will immediately serialize that value to the .dockitem backing it. Then the file monitors will see a change and trigger a reload of dock items. So you probably are getting some nasty behavior here.

It might make sense to just play with the Position (which isnt serialized) and then when a drag finishes, go through and update any Sorts.

review: Needs Fixing
Revision history for this message
Robert Dyer (psybers) wrote :

As such I reject this.

review: Disapprove
Revision history for this message
Robert Dyer (psybers) :
review: Disapprove

Unmerged revisions

261. By Sergio Spinatelli

Change managing:update sorting value in the dockitem only when the drag actually ends

260. By Sergio Spinatelli

Fix coding style

259. By Sergio Spinatelli

Fix coding style and comment file deletion out

258. By Sergio Spinatelli

Merge trunk

257. By Sergio Spinatelli

Merge trunk

256. By Sergio Spinatelli

Improve launcher managing (moving,adding,removing)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches