[Glade-users] Glade - Create my own function
Tadej Borovšak
tadeboro at gmail.com
Fri Jun 18 13:19:59 EDT 2010
Hello.
There are a few details to be taken care of before your callback
functions will be loadable by GModule. First, make sure your callback
are not marked as static. Second, prefix your callback
definition/declaration with G_MODULE_EXPORT (this is only needed if
you develop for Windows, but I find it cleaner to always write it).
Third, make sure your linker exports signals by adding gmodule-2.0
package to the pkg-config invocation.
For example, glade application should be compiled like this:
cc $(pkg-config --cflags gtk+-2.0 gmodule-2.0) -o my_app main.c \
$(pkg-config --libs gtk+-2.0 gmodule-2.0)
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
More information about the Glade-users
mailing list