I'm trying to run a C program using Gtk3.0 and Cairo on a Codeblocks project.
But whenever I try to compile-run it, the codeblocks terminal emulator says:
GLib-GObject-WARNING **: /build/buildd/glib2.0-2.40.2/gobject/gsignal.c:2462: signal 'draw' is invalid for instance '0x211a870' of type 'GtkDrawingArea'
The line it refers to is this one:
g_signal_connect(G_OBJECT(actarea), "draw" , G_CALLBACK(on_draw_event), NULL);
The Gtk window actually appears but NOT Cairos drawing area.
This is odd, because I compiled it manually (with emacs) and used
gcc -o p1 p1.c `pkg-config --cflags --libs gtk+-3.0`
and did work! Same code in a codeblocks and that message appears on codeblocks terminal emulator. I need to use codeblocks but this keep me from running my program.
I already tried to include in "Compiler>other options" the commands
`pkg-config --cflags --libs cairo`
`pkg-config --libs cairo`
but didn't work.
What is happening and how to overcome this issue? Thanks!