GTK Signals don't work in C program with GTK3 and Anjuta

484 Views Asked by At

I try to write a C program, which uses GTK3. I can compile it, but the callback functions for the signals of GTK don't work. They contain only such things:

G_MODULE_EXPORT 
void activateWindow(GtkWidget *widget, gpointer data) {
    g_print("Event: Activate-Default\n");
}

but I don't see any output. I have enhanced the template project of Anjuta 3.12, which uses

gtk_builder_connect_signals (builder, NULL);

to auto-connect the handlers. The handler names I have set in the Glade3 editor, i.e.

<signal name="activate-default" handler="activateWindow" swapped="no"/>

within the *.ui file. As configuration I have set "Debug" and changed the configure options to

--enable-maintainer-mode 'CFLAGS=-g -O0 -Wall -Wextra -Wl,--export-dynamic' 'CXXFLAGS=-g -O0 -Wall -Wextra -Wl,--export-dynamic' 'JFLAGS=-g -O0' 'FFLAGS=-g -O0'

I could compile the program on the command line, but I would like to understand the configuration of Anjuta.

what is wrong?

0

There are 0 best solutions below