Hi, and welcome.
GTK 2 tutorial has a good example for you to work from.
For free advice and help with Linux, email me. paul at goodliffe dot org dot uk. I am not associated with any products, and I have no other business or financial gains to make from my advice. Quite simply; if I can help, I will.