[PATCH] Several rows in taskbar

Olivier Goffart ogoffart at kde.org
Sun Jan 20 14:18:09 CET 2008


Le dimanche 20 janvier 2008, Marco Martin a écrit :
> On Saturday 19 January 2008 10:19:52 Olivier Goffart wrote:
> > Hi,
> >
> > The patch add the support for showing taskbar entry in several rows 
> > (with all the animations ans stuff)
> > When there is too much task shown in the taskbar, it automatically take
> > more rows.
>
> Hi,
> seems neat, only a couple of doubts:
> like Chani said i would have gone with a grid layout,

Definitively not a grid layout.
In a grid layout you insert item at a certain position on the grid (you give 
the col and the row number, and eventually the item can take several position 
of the grid)
But for this feature, you just insert items in the list, this is exactly the 
way box layouts works.

I originaly wanted to subclass the BoxLayout for this feature, but it would 
just have created more code duplication.

> most important i wonder how this will cope with some still not implemented
> features (some that i would try to do and i'm always procastinating :P)

Euh...   difficult to say without reading your mind :-)

> little panels, where there is not room for a second line (put an hardcoded
> condition or maybe depending on font metrics?)

Ah yes, that should be fixed.   Anyway, if this happen, that mean you have so 
much task that the width of the entry is very small and only the first letter 
can be read

> vertical panels, where the tasks are put in a column(yeah, not supported at
> the moment) this patch should be deactivated in this case

Not necesserly.   This would work fine with vertical panel also.  (But instead 
of taking severals rows, it will take several columns.



Btw, what's the status of libplasma regarding binary compatibility? 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080120/cebe7430/attachment-0001.pgp 


More information about the Panel-devel mailing list