[Gambas-user] Problems with TrayIcon

Benoit Minisini gambas at ...1...
Wed Feb 20 23:54:24 CET 2008


On mardi 22 janvier 2008, Leonardo Miliani wrote:
> Benoit Minisini ha scritto:
> > On mardi 22 janvier 2008, Leonardo Miliani wrote:
> >> Some time ago I developed a little application that docked an icon in
> >> the systray and I called a popup menu just by clicking on it.
> >> I developed that app when I used SUSE with KDE.
> >>
> >> Now that I switched to Ubuntu/Gnome I'm having a problem with that app.
> >>
> >> When I run my app, I don't get the icon in the systray: I just get a
> >> vertical line of just 1 pixel width!
> >> My app uses gt.qt component: if I try to use the gb.gtk or the gb.gui
> >> I get my app freezed.
> >>
> >> Ciao.
> >> Leonardo.
> >
> > Please send the project on the mailing-list if it is small. This way
> > other Gnome users could tell me if they have the same behaviour.
> >
> > Regards,
>
> The applications is downloadable from here:
> http://www.gambas-it.org/gmbs/modules/PDdownloads/singlefile.php?cid=1&lid=
>5

There are bugs in your application: You set the trayicon icon to the form 
background, instead of the form icon. You open a popup menu in the MouseDown 
event, whereas you must use the Menu event. But this allowed me to fix a bug.

Anyway, the vertical 1 pixel width appears when displaying a QT tray icon in 
the Gnome notification area. Any other combination seems to work (gb.qt/KDE, 
gb.gtk/Gnome and gb.gtk/KDE). This needs some investigation...

Regards,

-- 
Benoit Minisini




More information about the User mailing list