On Wed, 2008-10-15 at 10:04 +0000, Martin Pitt wrote: > Sebastian, Ted, how can this be done sanely on upgrades? It'd require > some heuristics to figure out which of the existing panel objects can > be moved to the left, until we hit one which we can squeeze by the > width of fusa, and thus where the "move to left" process can stop. > > E. g. for my own panel the only stretchable area is the window list; > there is no free space, and the other things on the panel have a fixed > width. > > Do applets tell whether they are stretchable?
The way that this works is that the panel does all of the work. Basically in the configuration there is a suggested location and the panel tries it's best to honor that suggestion. So what we do in the default configuration is set the locations to incremental pixel locations, for example the FUSA applet at 1 and the clock at two. The panel first honors the FUSA request and puts it on the right, and then honors the clocks request to be as close to that as possible. So an upgrade script doesn't really need to do heuristics as much as it needs to ensure that there is a count between all of the applets and that, of the right aligned applets, the FUSA applet has the lowest number. The panel will take care of the rest. -- When FUSA applet has shutdown/logout items are duplicated in "System" menu https://bugs.launchpad.net/bugs/283278 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is a bug assignee. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs