← Back to team overview

dbusmenu-list team mailing list archive

AboutToShow again

 

Hi,

As I would really like to get aboutToShow support implemented in time
for Ubuntu Lucid alpha 3, I went on with implementing the proposal I
sent in the beginning of January. It works quite well and can be found
in the aboutToShow branches in the dbusmenu-qt and kdebase-workspace
repositories.

To spare some of your time going through the archive, I'll just
copy'n'paste the way it works:

------------------
Add a "bool aboutToShow(id)" method to the DBus interface. This method
would be called when the menu is about to show and should return true if
the menu needs to be refreshed, false otherwise.

The calling sequence would be as described in attached diagram.

In the most common case (no update), this solution only introduces at
worst a 10 msecs delay (in case the DBus answer to aboutToShow() does
not come back before the timeout).
------------------

Having actually used it, it is fast enough on my dev machine: calling
aboutToShow takes between 1 or 2 milliseconds, so I don't think we are
going to need the event masking. I need to test it on a less powerful
machine though.

What do you think? If we agree on this, I am even ready to go as far as
implementing the glib version. This should prove how motivated I am to
get this in for alpha 3 :)

Aurélien

PNG image