To compile: gcc -o test_withdata_withcolor test_withdata_withcolor.c pkg-config --libs --cflags gtk+-2.0