Re: [lazarus] Re: How c++ bindings work

2005-12-17 Thread Michalis Kamburelis
Felipe Monteiro de Carvalho wrote: Andrew Haines wrote: This link might be helpful as well ;) http://cvs.sourceforge.net/viewcvs.py/lazarus-ccr/gtktrayicon/ I added gtktrayicon.pas to my project and tryed to compile it. I get an error message (actually I get many errors, but this I could

Re: [lazarus] Re: How c++ bindings work

2005-12-17 Thread Mattias Gaertner
On Sat, 17 Dec 2005 11:10:24 -0200 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Michalis Kamburelis wrote: Try old_error := XSetErrorHandler(@TempX11ErrorHandler); (i.e. add @ there). AFAIK during 2.0.1 some changes were made to require @ in more situations when passing

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
Here is how I solved the problem: 1 - added @ 2 - Changed the procedure to: // Temp ErrorHandler function TempX11ErrorHandler(Display: XLib.PDisplay; ErrorEv:PXErrorEvent): longint;cdecl; begin //WriteLn('Error: ' + IntToStr(ErrorEv^.error_code)); end; notice the XLib.PDisplay I think I

[lazarus] Re: How c++ bindings work

2005-12-17 Thread Felipe Monteiro de Carvalho
dannym wrote: The systray icon stuff is standardized, but (older?) kde deviates from it horribly. Just the amount of workarounds that we had to put in xfce to make kde systray icons work scares me. Do not do that. I think the current KDE must be even worse. On older versions there still was a