[Glade-users] glade_xml_signal_autoconnect problem



Hello,
I'm building a small application from scratch using libglade and with
anjuta (autogen...), and I have problems with signals.
My source looks like this:
main.c:
#include "callbacks.h"

in main:
        glade_xml_signal_autoconnect (xml);

in callbacks.h:
gboolean on_listview_drag_drop(GtkWidget * widget,
                               GdkDragContext * drag_context,
                               gint x,
                               gint y, guint time, gpointer user_data);

void on_listview_drag_data_received(GtkWidget * widget,
                               GdkDragContext * drag_context,
                               gint x,
                               gint y,
                               GtkSelectionData * data,
                               guint info, guint time, gpointer user_data);

in callbacks.c, the implementations.

When I'm running it, I get warnings like this:

 libglade-WARNING **: could not find signal handler
'on_listview_drag_drop'.

After some searches, I found about a --export-dynamic to add to LDFLAGS.
It already appeared in places in the Makefile, I added it all the same,
but to no effect.
I got an (old) libglade tutorial from
http://users.bigpond.net.au/mlm/libglade/, and tried to look at it. The
problem is, it gave the same errors - with simple hand-made makefiles.
And my project derives straightforwardly from the anjuta template, so
possibly the error is since a change in libtool/ld/libglade.

I would really enjoy some ideas, or a simple working example.
Thanks.





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