Gtk Development in Netbeans
From Birnam Designs Wiki
(assuming you have netbeans and gtk 2.0 installed already!)
You need to add the pkg-config output to the additional commands in the project properties.
File -> Project Properties Build -> C / C++ Compiler [either or both] Command Line -> Additional Options
add: `pkg-config --cflags --libs gtk+-2.0`