-   Linux - Software (
-   -   GTK+ 2.0 testgtk.c on debian squeeze (

delis 06-03-2012 09:19 AM

GTK+ 2.0 testgtk.c on debian squeeze
Hi all.

I am trying to learn GTK+. I use the official GTK+ tutorial at

They refer to a file called testgtk.c that shows most of the GTK functionality. I just can't find it on my system. I installed the packages libgtk2.0* except libgtk2.0-cil* and libgtk2.0-dbg. And i installed gtk2.0-examples. Then i tried a "find / -name testgtk*" which gave me no result.

I know the file is included in the source packages of GTK+ in the subdir /tests/testgtk.c. But to compile the file it is necessary to compile the whole package, wich generates a config.h file that is included by testgtk.c. I don't want to compile this and related packages by hand.

I think I am missing something. I searched google and the forum but got no matches related to this.

Any hints would be great!

knudfl 06-03-2012 09:29 AM

Welcome to LQ.

testgtk.c is the first hit with Google .. testgtk.c ..

And : Is located in the gtk source , e.g. gtk+-2.24.10/tests/testgtk.c

cd gtk+-<version>/ && ./configure : config.h is generated.


delis 06-03-2012 09:49 AM

Thank you so much!

I tried it with the 3.4 Version and ./configure aborted because of wrong package versions, obviously ;)

Didn't know where to find the source of the installed debian package.

Glad to have this forum :)

knudfl 06-03-2012 11:14 AM

Debian sources ..

e.g. Squeeze
→ → gtk+2.0_2.20.1.orig.tar.gz ( Bottom of the page.)


delis 06-03-2012 12:06 PM

Maybe this should be placed in the newbie section :p

All times are GMT -5. The time now is 07:56 PM.