On Tue, 28 Nov 2006 15:40:35 -0200
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

> On 11/28/06, Aleš Katona <[EMAIL PROTECTED]> wrote:
> > > Shouldn´t it be LCLGtk and LCLGtk2? At least that is what I use
> > > on TrayIcon.
> >
> > Doesn't matter, we're still case insensitive.
> 
> You wrote GtkLCL <> LCLGtk ... I was raising the possibility that you
> mistyped the define.

Anyway:
The LCL package defines the flags LCL and LCLGtk2 when your project
compiler options is set to widgetset gtk2. 

You can see the compiler command line flags in Compiler Options -> Show
options. In the inherited options, you can see, that only one
LCL<widgetset> is inherited to your project/package.
And the IDE flags in Source Editor Popup menu -> Unit Info -> Show
Codetools Values.

 
> > Btw TrayIcon is broken in windows.
> 
> Just tested the example app on latest subversion on windows XP. All
> worked ok. What is broken, exactly? Can you make a test app? Possibly
> a bug report.
> 
> > No. I have lazarus in gtk1, but my app is compiled for gtk2. When I
> > compiled the package, since both LCLGtk and LCLGtk2 were defined, I
> > got a gtk2 package. that failed to be put on a gtk1 design form
> > (because it gets X content via gdk2, not gdk1 stuff).

How did you check, that both flags LCLGtk and LCLGtk2 were defined?

 
> You need to compile the package twice. Once for Gtk 1 to install on
> the IDE, and another time to use at run-time. Output files of packages
> are put on a directory with the name of the widgetset, so you can
> recompile the same package for any number of widgetsets.

Yes, please check that your package output directory contains the
$(TargetCPU)-$(TargetOS) macros, otherwise the compiler will mix
different things together. For example: The compiler does not
recompile a depending unit if only a flag has changed.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to