Recent

Author Topic: TTrayIcon on KDE4  (Read 4833 times)

celyo

  • New member
  • *
  • Posts: 7
    • http://www.celyo.org
TTrayIcon on KDE4
« 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?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: TTrayIcon on KDE4
« Reply #1 on: November 09, 2011, 07:19:58 pm »
Using which widgetset? gtk2 or qt4?

celyo

  • New member
  • *
  • Posts: 7
    • http://www.celyo.org
Re: TTrayIcon on KDE4
« Reply #2 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.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: TTrayIcon on KDE4
« Reply #3 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

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3646
  • I like bugs.
Re: TTrayIcon on KDE4
« Reply #4 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

flames

  • New member
  • *
  • Posts: 5
Re: TTrayIcon on KDE4
« Reply #5 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"
« Last Edit: November 25, 2011, 05:33:30 pm by flames »

celyo

  • New member
  • *
  • Posts: 7
    • http://www.celyo.org
Re: TTrayIcon on KDE4
« Reply #6 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?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: TTrayIcon on KDE4
« Reply #7 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

celyo

  • New member
  • *
  • Posts: 7
    • http://www.celyo.org
Re: TTrayIcon on KDE4
« Reply #8 on: November 29, 2011, 01:59:01 pm »