[Glade-users] Glade - Create my own function

Agam Dua agamdua at gmail.com
Fri Jun 18 14:11:31 EDT 2010


Hi Tadej

Thank you so much for your quick response! :)

I have taken care of all 3 things.

When I click on the button the following error comes:

*"(my_app:2408): Gtk-CRITICAL **: gtk_file_chooser_get_filename: assertion
`GTK_IS_FILE_CHOOSER (chooser)' failed*
*Segmentation fault"*
*
*
Would it be easier if I mailed you the code on your personal email?
*
*
I am newbie.. so sorry if these are basic questions..

Thanks in advance.
Agam

On Fri, Jun 18, 2010 at 10:49 PM, Tadej Borovšak <tadeboro at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20100618/1cb421b3/attachment-0001.html 


More information about the Glade-users mailing list