[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkBuilder, win32 & signals
- From: "Tor Lillqvist" <tml iki fi>
- To: "Gabriele Greco" <gabriele greco darts it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkBuilder, win32 & signals
- Date: Wed, 13 Feb 2008 16:52:29 +0200
> I'm wondering if the gmodule "inspecting" feature to link the handlers
> is broken in win32 or if I have to add some more flag
I quote the documentation for gtk_builder_connect_signals() in trunk:
* When compiling applications for Windows, you must declare signal callbacks
* with G_MODULE_EXPORT, or they will not be put in the symbol table.
* On Linux and Unices, this is not necessary; applications should instead
* be compiled with the -Wl,--export-dynamic CFLAGS, and linked against
* gmodule-export-2.0.
I.e. define your callback functions like this:
G_MODULE_EXPORT int
foobar (...)
{
...
}
--tml
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]