Found some problem in Lazarus 2.0.2 (release, builded from sources with FPC 3.0.4) in Linux (XUbuntu 18.04 x86_64 gtk2).
Simple application with TrayIcon dont show icon in tray.
procedure TForm1.FormShow(Sender: TObject);
begin
TrayIcon1.Show;
end;
This example works in Lazarus 1.8.0 (release, builded from sources with FPC 3.0.4).
I tried debug code from customtrayicon.inc ->
function TCustomTrayIcon.InternalShow: Boolean;
it calls
Result := TWSCustomTrayIconClass(WidgetSetClass).Show(Self);
In LCL 1.8.0 it uses gtk2trayicon.inc
class function TGtk2WSCustomTrayIcon.Show(const ATrayIcon: TCustomTrayIcon): Boolean;
but
In LCL 2.0.2 it uses UnityWSCtrls.
class function TUnityWSCustomTrayIcon.Show(const ATrayIcon: TCustomTrayIcon): Boolean;
Where I did something wrong?
Sorry for my English.