[Glade-devel] Embedding glade in other applications (like IDE)
Joaquin Cuenca Abela
e98cuenc@free.fr
Wed, 7 Jan 2004 21:22:52 +0100
Sridhar wrote:
>
> Hi,
>
> I'm not sure whether glade-2 supports this (i.e. using glade
> as a widget or component within applications like IDE).
> Somewhere else I saw glade-3 people are working componetizing glade.
>
> I am actually working on a IDE project. In that, I like to
> use glade as the GUI designer (instead of reinventing the same wheel).
>
> But the problem is using glade within application.
> Also my application is intended to be portable to all
> platforms where gtk is portable.
>
> My doubt is how can I use glade-3 within my own IDE project.
> Do glade-3 uses ORBit or something else. If so, is that
> library (eg. ORBit) portable to non-UNIX systems like
> MS-Windows? Well. where can I get started?
No, we don't depend in anything other than plain gtk+. I build regularly a
windows version with MS Visual C 6.
The build processus is not exactly trivial, as we build the part that
handles the code specific to gtk+ widgets (glade-gtk.c) as a dll that calls
back some functions of the main glade (as for instance, to create a
placeholder here and there).
As I didn't managed to export the needed functions from glade-3.exe, I put
the needed functions in an internal dll, that it's used by glade-3.exe and
glade-gtk.dll.
So the easiest way to get a w32 build will probably be to just ask me for a
msvc project (I have not put it in cvs).
It should be quite easy to embed it in your project, however it's still beta
quality.
Cheers,