[Gambas-user] TrayIcon menu icon: always a delay time

Benoit Minisini benoit.minisini at gambas-basic.org
Sun Dec 18 20:33:12 CET 2022


Le 18/12/2022 à 20:12, CD a écrit :
> 
> Hello,
> for the needs of an application, I tried to reproduce the behavior of the icons
> of the popup menu of the TrayIcon.
> I attach a TestTrayIcon project
> 
> If for the needs of an application you have to change the icon of a menu (to
> reflect the state of the application), this one always changes only with a time
> delay.
> I read all about the TrayIcone subject and their popup menu, without finding the
> shadow of a solution to my problem.
> 
> 1°) to have Picture in the menus they must be defined by the menu editor, in the
> Form_Open it does not work.
> 
> 2°) when they have been defined in the menu editor, BLACK appears WHITE
> 
> 3°) when we try to change the picture at runtime, the first time it becomes as
> it should have been on loading! BLACK (which was WHITE) becomes BLACK
> but not the new picture you have ask for!
> the second time as it should have been the first
> the third like the second...
> 
> as a famous physicist of quantum mechanics said if you understood something, it
> is that I explained myself badly...
> I let you test TestTrayIcon, the comments explain what is happening
> 
> Cordially
> 

I tried to follow the half-documented specification of the trayicon 
protocol made by Ubuntu (apparently), but it seems that no desktop 
implements it the same way. It's a mess.

Can you try first with KDE Plasma and see what works and what does not 
work? It seems to be the most coherent support.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list