[Glade-users] Glade - Create my own function



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]