[Panel-devel] Hello

William Egert begert at gmail.com
Tue Dec 11 04:54:36 CET 2007


On Dec 10, 2007 8:10 PM, Aaron J. Seigo <aseigo at kde.org> wrote:

> On Monday 10 December 2007, William Egert wrote:
> > On Dec 10, 2007 7:39 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
> > clock 3 times for the calendar to be displayed.  This patch fixes the
> > clock,
>
> ah, something i forgot to mention that i noticed on first read of the
> patch is
> that you should not be initializing the dialogs in the constructor. that
> just
> slows down start up time and may unecessarily use up memory (what if the
> user
> never clicks to get the calendar?) ... there's a reason it is initialized
> in
> the mouseClickEvent =)


That makes sense,  I suppose the important thing is that it is deleted in
the constructor.

>
>
> also, i'm not sure what the point of m_calendarIsShown is when one can
> simply
> query isVisible()?


This is unused in the second patch, showing the calender would  toggle on
this bool, but with the 2nd patch it would not be necessary.

>
>
> apologies for not putting that in the earlier email...


see above :)

>
>
> > but it does look like Plasma::Dialog eats up a click event?  For
> > example, if i click so the calender is displayed, and then click on an
> open
> > application, the calendar will hide, but the application did not gain
> > focus.
>
> that would be a side effect of setting the calendar window type to Popup.
> personally, i'd set it to be a toolbox window and only close it on an
> explicit close.


not sure if its up to me to make that call .

>
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Trolltech
> <https://mail.kde.org/mailman/listinfo/panel-devel>


-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/panel-devel/attachments/20071210/eee9504b/attachment-0001.html 


More information about the Panel-devel mailing list