Thank you for the reply, I did some additional testing on different OSes
and computers, I can reproduce the issue with the same binary in:

 1. Fedora 30 with KDE
 2. Fedora 30 with Xfce
 3. Debian 10 with Cinnamon

All of the above mentioned operating systems do not show the tray
icon... This leads me to think that this might be an issue in the GTK+
driver, I have looked into the source code for IUP and the GTK driver, I
found that the GtkStatusIcon interface which is used for implementing
the tray is deprecated. We may need to define some macro during
compile-time to enable the deprecated functions, but I am not sure.

I will dig deeper into this tomorrow

On 07/08/19 11:48 PM, Antonio Scuri wrote:
>   Hi,
>
> > Maybe this issue is limited to the KDE Plasma desktop...
>
>   That was my second guess.
>
>   I depend on GTK. I don't use any other API in IUP/Linux. And since
> you mention KDE it could be the problem.
>
> Best,
> Scuri
>
>
> Em qua, 7 de ago de 2019 às 14:41, Damon H. (TheDcoder)
> <thedco...@disroot.org <mailto:thedco...@disroot.org>> escreveu:
>
>     Thank you for the fast response Antonio,
>
>     I have tried your pixmap and unfortunately it did not work :(
>
>     I should have mentioned this in my previous email but I do not
>     think the problem was the image file not being found, the reason
>     is because I am using the same string to also set the ICON for the
>     main dialog and it works.
>
>     Maybe this issue is limited to the KDE Plasma desktop... I am not
>     experienced enough to figure out what is wrong but I have a
>     suspicion that GTK+ driver's implementation of the tray icon may
>     have some incompatibilities with the desktop. I'd be happy to run
>     any tests to find out more about the issue.
>
>     Another thing that I missed in my last email is that I erroneously
>     mentioned that I was running Fedora 29, but I am currently running
>     version 30. It does not change much but it might be a valuable
>     minor detail when reproducing the bug.
>
>     Regards,
>
>     Damon H.
>
>     On 06/08/19 6:31 PM, Antonio Scuri wrote:
>>     Hi Damon,
>>
>>     The e-mail you used is not subscribed to the list, I had to
>>     authorize your post. Please subscribe to the list in order to be
>>     able to post. If you don't want to subscribe you can send e-mail
>>     directly to i...@tecgraf.-puc-rio.br <http://puc-rio.br>
>>
>>      It is possible that the image file is not being found. I suggest
>>     you to test it using the attached sample code.
>>
>>     Best,
>>     Scuri
>>
>>     Em ter, 6 de ago de 2019 às 06:10, Damon H. (TheDcoder)
>>     <thedco...@disroot.org <mailto:thedco...@disroot.org>> escreveu:
>>
>>         Hello everyone!
>>
>>         I am using IUP for developing a cross-platform GUI
>>         application, currently I am experimenting with the TRAY
>>         features in IUP, unfortunately it looks like it does not work
>>         well on my KDE desktop... the tray icon is not visible at
>>         all. I have set both the TRAY and TRAYIMAGE attributes of the
>>         main dialog like so:
>>
>>         IupSetAttribute(dialog, "TRAY", "YES");
>>         IupSetAttribute(dialog, "TRAYIMAGE", "icon.png");
>>
>>         I am running Fedora 29 (KDE Spin) with KDE Plasma 5.15.5, I
>>         appreciate any help in this regard.
>>
>>         Thank you for reading and for the help in advance!
>>
>>         P.S It is awesome to see that IUP has support for the tray
>>         functionality, I was certainly overjoyed when I learned of
>>         this as I was planning to manually add support for it myself.
>>
>>         _______________________________________________
>>         Iup-users mailing list
>>         Iup-users@lists.sourceforge.net
>>         <mailto:Iup-users@lists.sourceforge.net>
>>         https://lists.sourceforge.net/lists/listinfo/iup-users
>>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to