Amarok 2 containment positioning problems
Mark Kretschmann
kretschmann at kde.org
Sun Nov 9 14:41:30 CET 2008
Hey Plasmoids,
since bumping libplasma in Amarok recently we have been experiencing
problems with our containment layout. The problem becomes visible if
you zoom out of the containment: Instead of a grid of 2x2, Amarok now
shows all containments in one row, which hides some of the
containments due to lack of space.
I'm asking for your help here, as we're really lost and cannot figure
out the problem. I'm adding a mail that our Plasma dev William Viana
sent to our amarok-devel mailing list; it explains the issue in more
detail:
---------- Forwarded message ----------
From: William Viana <vianasw at gmail.com>
Date: Tue, Nov 4, 2008 at 11:20 AM
Subject: Regarding Containments positioning problems
To: amarok-devel at kde.org
You sure noticed that containments in the context view are placed in a
line instead of in a 2x2 grid like it used to be. Here is what it
seems to be happening:
Plasma::Applet::flushPendingConstraintsEvent is called automatically
to update all pending constraints.
|-> Plasma::ContainmentPrivate::containmentConstraintsEvent is
called (notice the private)
|-> Plasma::ContainmentPrivate::positionContainment places
containments in a line.
Since they are all private functions I can't think of a way to avoid
that behavior while using Plasma::Containment class.
A way to get the containments placed in a 2x2 grid would be to set
CONTAINMENT_COLUMNS = 2; in containment_p.h but for that we would have
to convince plasma dev's that placing containments in a 2x2 grid looks
better. Other solution would be to hurry plasma devs to implement a
layouting for containments :P ... or submiting a patch that is not too
intrusive.
--
-William-
--
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org
More information about the Amarok-devel
mailing list