Actually, the realignment approach was what I did with the modified
first iteration of my patch. As you suggest, the code involved for this
is incredibly simple. Also, after investigating the behavior of Windows
XP, a similar method is used there. I do, however, disagree with the
"realign every 2 seconds" concept. IMHO, the best way to implement this
realignment approach is to put schedule_align_icons() (the function
you're talking about) into nautilus_icon_container_add() and
nautilus_icon_container_move_icon(). This way, whenever an icon is moved
or added, the grid will be updated, and we wouldn't be aligning without
reason.

Just to let you know, I discussed this on the Nautilus mailing list and
on Bugzilla, and my patch was not accepted because the "move icons
around" behavior was not desired. If case you are interested in code for
this approach, I attached the patch I made earlier. Note this has an
issue with renaming a new icon, but that could be fixed. Also, I should
add that Nautilus bugs would best be discussed upstream (i.e. Nautilus
Bugzilla). A number of reports appear there, including where I posted my
patches ( https://bugzilla.gnome.org/show_bug.cgi?id=601469 ).

** Patch added: "Proposed-changes-for-Keep-Aligned.patch"
   
http://launchpadlibrarian.net/42925763/Proposed-changes-for-Keep-Aligned.patch

-- 
Desktop icons are allowed to overlap
https://bugs.launchpad.net/bugs/40872
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a direct subscriber.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to