[Gambas-user] Tray icon not updated sometimes

Benoit Minisini gambas at ...1...
Wed Aug 27 15:56:21 CEST 2008


On mercredi 27 août 2008, HARADA Kazutaka wrote:
> Hi,
>
> Another problem for tray icon found.
>
> With gambas2-2.8.1, I found that the picture of tray icon is not
> updated (changed) sometimes.
>
> I wrote a small project to reproduce it.
> - create new form and put a trayicon in it
> - set default picutre of trayicon (TrayIcon1.Picture="blue.png")
> - then put following code in the class
>
> PUBLIC SUB Form_Show()
>
>    SLEEP 3
>    TrayIcon1.Picture = Picture["green.png"]
>    SLEEP 3
>    TrayIcon1.Picture = Picture["yhellow.png"]
>    SLEEP 3
>    TrayIcon1.Picture = Picture["red.png"]
>
> END
>
> Then run it and wait for 10 seconds.
> Finally "red.png" picture is shown on trayicon but "green.png" and
> "yellow.png" are not.
>
> This happens both gb.qt and gb.gtk.
>
> I'm using gtk+-2.12.11 and qt-3.3.8 with gnome-2.22.3.

What happens if you replace "SLEEP" by "WAIT"?

-- 
Benoit Minisini




More information about the User mailing list