TrayIcon transparency lazarus / 1-Linux ---------------------------------------------------------------------- TrUsTeR · 2009-04-12 06:45 Hi to all! I use TrayIcon component, but there is no transparency on icon for linux/gtk2. So I have these results: There is no problem under win32 (icon is transparency). I have no trayicon under win32/gtk2 at the same project. And i have non-transparent icon (there is a white square at background) under Linux/gtk1 and Linux/gtk2. Any ideas to fix this problem? ---------------------------------------------------------------------- felipemdc · 2009-05-16 03:34 Please make a bug report ---------------------------------------------------------------------- TrUsTeR · 2009-11-06 17:03 Quote from: TrUsTeR on April 12, 2009, 08:45:43 amAnd i have non- transparent icon (there is a white square at background) under Linux/gtk1 and Linux/gtk2. To solve this problem, rebuild Lazarus LCL with option -dUseStatusIcon, to use transparency in trayicon. But after that i have no icon in tray at all. I spent some time with tests and learned that fEmbedded property in lcl/interfaces/gtk2/gtk2trayicon.inc is always False (in my case), when LCL compiled with UseStatusIcon option... So i have wrote little workaround. Maybe it's not correct (I'm newbie in programming ), but it works for me - icon in tray is transparent now. Code: [Select]*** gtk2trayicon.inc 2009-04-19 06:59:22.000000000 +1300 --- gtk2trayicon.inc.1 2009-11-07 04:13:37.000000000 +1200 *************** *** 479,488 **** --- 479,492 ----     *  Now shows the GtkPlug     *******************************************************************}     TrayIconHandle.Show; + {$ifdef UseStatusIcon} +   Result := True; + {$else}     if TrayIconHandle.fEmbedded then       Result := True     else       Hide(ATrayIcon); + {$endif}   end;   {******************************************************************* ---------------------------------------------------------------------- robregonm · 2011-04-22 00:33 Amazing... 2 years later this patch is still valid. I applied it to Lazarus 0.9.30 in  Linux. Thanks. ---------------------------------------------------------------------- felipemdc · 2011-04-22 08:21 I applied it a few days ago to Lazarus SVN