[Panel-devel] Fwd: Plasma Layout bug
Robert Knight
robertknight at gmail.com
Sat Nov 3 18:15:33 CET 2007
---------- Forwarded message ----------
From: Frerich Raabe <raabe at froglogic.com>
Date: Sat, 3 Nov 2007 15:55:06 +0100
Subject: Plasma Layout bug
To: Robert Knight <robertknight at gmail.com>, Aaron Seigo <aseigo at kde.org>
Hi,
there's been a bug in the Plasma layouting for approx. a week now. I'm not
sure you're aware of it (even though I can hardly imagine how one can not be
aware of it) so I investigated what the heck is going on. Unfortunately, the
problem is somewhere in the Plasma layouting code and I'm unclear about what
an accurate fix would be since I don't understand all that constraints stuff
and whatnot.
How to trigger the bug:
1.) Remove your plasma-appletsrc
2.) Start KDE desktop
3.) Stop KDE dekstop
4.) Start KDE desktop again
The symptom of this bug:
On step 4), the digital clock is not right-aligned anymore (as it was in step
2), as expected). Instead, it's almost right next to the K-menu button, at
the left side of the panel.
What I found out so far:
- The default configuration works correctly: in step 2), the digital clock is
nicely right-aligned
- The configuration is written out correctly, when inspecting plasma-appletrc
file after step 3), one can see the proper geometry of the clock.
- The configuration is read out correctly. I noticed this by adding debug
output to Containment::addApplet()
I traced it a bit further, to this piece of code in Containment::addApplet():
if (d->layout) {
d->layout->addItem(applet);
}
before this statement, applet->geometry() is correct. After this statement,
it's broken.
Do you know what's going on, what went wrong there? I suspect one of you two
would be much faster at fixing this than I would be.
- Frerich
More information about the Panel-devel
mailing list