On Fri, 19 May 2006 11:53:19 +0200
"A.J. Venter" <[EMAIL PROTECTED]> wrote:
> > >
> > > Doesn't work here.
> >
> > What doesn't work?
> TrayIcon gets compiled with wsgtktrayicon instead of wsgtk2trayicon if the
> project is set to use gtk2 while the IDE is running gtk1.
When the project is set to gtk2 and you compile it, the IDE checks all
packages. The package should be compiled with LCLWidgetSet macro set to the
value of the project (gtk2). If not, then you spotted a bug.
In case of TTrayIcon:
This component differs between gtk1 and gtk2. But the output directory is
the same.
I added the LCLWidgetSet macro to the path of the trayicon package, so it
won't be recompiled everytime you switch the widgetset.
> > > > Next I recompiled only LCL for Gtk2 (from the IDE), and it worked.
> > >
> > > My lazarus hangs when I do that,
> >
> > Can you reproduce that? If yes, please start the IDE in gdb and create a
> > backtrace.
> Reproduce ? I cannot get avoid it :) but we are talking about two
> sepperate bugs here - we shouldn't ASSUME a relationnship
> Backtrace attached.
>
> This happens on every machine I have access to and has been for about 2
> weeks now. .
Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth",
This means: your theme uses abilities you don't have. Either install another
theme, or install the smooth engine.
> > > I have to rerun make, then rebuild with
> > > gtk1, gives me enough gtk2 for my apps to be compiled - but it might
> > > prevent the GTK2 def from being passed to trayicon ? If so that's a
> > > bug either in lazarus or in ttrayicon, I'm not sure.
> > > On a hunch I opened the ttrayicon.lpk file, changed it's compiler
> > > options to use gtk2, reinstalled, rebuilt wole for gtk2 - same
> > > result. Same stack trace as well. So it doesn't matter what the
> > > component's compiler options say - which makes sense, it ought to
> > > receive it from the parent app. But it also ought to do so regardless
> > > of whether the LCL is using the same widget set as the project
> > > target.
> >
> > When the IDE compiles itself (LCL + IDE + installed packages) it
> > compiles for the target set in the configure build lazarus dialog
> > (Target cpu, os, widgetset). Even if the project has another target.
> > This has been fixed a few weeks ago, so it does not always work with
> > 0.9.14.
> I always run up to date SVN.
> Either way - this is the other bug - I am happy to work on both but the
> gtk2 ide bug is much more severe.
Can you give exact steps how to reproduce that?
> > > I reckon I should fix the lazarus issue first but I am stumped as to
> > > what could be causing it. Even a gdb backtrace didn't tell me anything
> > > usefull,
> > >
> > Where are the crashes? In the IDE? Which widgetset? Which components
> > installed?
> IDE starts up, splash screen shows. Then the lazarus editor window comes
> up, then the source editor window appears - and then the whole thing
> freezes solid - have to xkill it.
> 1) This only happens with GTK2 as the IDE widgetset
> 2) This happens REGARDLESS of what components are installed - even on a
> brand new fresh install with no .lazarus in existence yet.
> I also attach an LDD on the lazarus executable.
>
> GTK2 version is: gtk+2-2.8.7
> But I have the same problem on other versions both older and newer.
Because I don't have the time to debug the gtk2 interface, my only advice is
to use gtk1 for the IDE.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives