Lazarus

Programming => Operating Systems => Linux => Topic started by: celyo on November 09, 2011, 03:53:08 pm

Title: TTrayIcon on KDE4
Post by: celyo on November 09, 2011, 03:53:08 pm
Hi,

I'm developing application that uses TTrayIcon.
I've tested it under windows 7 and Fedora 15 (XFCE) and it works fine.
But when I've tested it under OpenSUSE 11.3 (KDE - transparent oxigen theme) the icon shows in the tray but it paint transparent color as White, i.e. where the icon must be transparent the white color is painted?

Any ideas how to fix this?
Title: Re: TTrayIcon on KDE4
Post by: felipemdc on November 09, 2011, 07:19:58 pm
Using which widgetset? gtk2 or qt4?
Title: Re: TTrayIcon on KDE4
Post by: celyo on November 10, 2011, 09:52:50 am
Gtk2 I think. I haven't made any changes to the widgetset since I installed lazarus, so I think is't GTK2.
Title: Re: TTrayIcon on KDE4
Post by: felipemdc on November 10, 2011, 10:11:00 am
One option is finding where the problem is and sending a patch. Here is the gtk2 trayicon code:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/interfaces/gtk2/gtk2trayicon.inc?view=markup&root=lazarus
Title: Re: TTrayIcon on KDE4
Post by: JuhaManninen on November 10, 2011, 10:12:00 am
I'm developing application that uses TTrayIcon.
I've tested it under windows 7 and Fedora 15 (XFCE) and it works fine.
But when I've tested it under OpenSUSE 11.3 (KDE - transparent oxigen theme) the icon shows in the tray but it paint transparent color as White, i.e. where the icon must be transparent the white color is painted?

Oxygen theme has many problems, at least with QT bindings. You could try for example Plastiqeu theme.

Juha
Title: Re: TTrayIcon on KDE4
Post by: flames on November 25, 2011, 05:31:07 pm
This is a problem in Gnome/gtk2 too, however it is fixed in SVN.
You need to grab gtk2trayicon.inc from SVN and re-build LCL with def "UseStatusIcon"
Title: Re: TTrayIcon on KDE4
Post by: celyo on November 29, 2011, 11:19:56 am
Hi,

Finally I solve my problem. Thanks to all of you, for your help!
I've used "UseStatusIcon" but there were some problems and I've fixed them.
Now I want to contribute a patch for gtk2trayicon.inc, could you tell me how to do that?
Title: Re: TTrayIcon on KDE4
Post by: felipemdc on November 29, 2011, 11:21:56 am
UseStatusIcon is on by default in Lazarus 0.9.31+ from what I remember.

Please create a new bug item in the bug tracker and attach a patch to it:

http://wiki.lazarus.freepascal.org/Creating_A_Patch
Title: Re: TTrayIcon on KDE4
Post by: celyo on November 29, 2011, 01:59:01 pm
OK, I've done it - http://bugs.freepascal.org/view.php?id=20775 (http://bugs.freepascal.org/view.php?id=20775)
TinyPortal © 2005-2018