[Gambas-user] New system tray icon protocol support, new episode.
Adrien Prokopowicz
adrien.prokopowicz at ...626...
Tue Jun 30 04:30:40 CEST 2015
Le Mon, 29 Jun 2015 03:53:23 +0200, Benoît Minisini
<gambas at ...1...> a écrit:
> Hi,
>
> In revision #7154, I have replaced the gb.form.statusicon component by a
> component named gb.dbus.trayicon.
>
> This new component is now automatically loaded by the GUI components
> when the current desktop is KDE 4 or KDE 5. Otherwise, the old protocol
> is used.
>
> That way, you write your TrayIcon code once, and it will adapt to the
> desktop.
>
> The remaining problems are :
>
> - It works with KDE5 for sure.
>
> - It must be tested with KDE4.
>
> - It does not work with Unity apparently, no idea why.
>
> But the idea is there: find another language on Linux that allows you to
> define a tray icon that automatically adapts to the protocol used by the
> current desktop, with GTK+2, GTK+3, QT4 or QT5! :-)
>
> Regards,
>
I just tested it on KUbuntu 14.04 LTS with KDE4, and it works
like a charm (see attached screenshot). :)
The only thing to note is that SNI only got implemented by Plasma in
KDE 4.5[0], so there is a case where gb.dbus.trayicon may get loaded
without a StatusNotifierHost being actually available.
Great job though ! I love the fact that apps automagically adapt to
what they're running within.
[0]
https://techbase.kde.org/Schedules/KDE4/4.5_Feature_Plan#kdebase-workspace
--
Adrien Prokopowicz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sni-kde4.png
Type: image/png
Size: 134048 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150630/2679b203/attachment.png>
More information about the User
mailing list