LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GTK+ 2.0 testgtk.c on debian squeeze (https://www.linuxquestions.org/questions/linux-software-2/gtk-2-0-testgtk-c-on-debian-squeeze-948294/)

delis 06-03-2012 08: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 http://developer.gnome.org/gtk-tutorial/stable/

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 08: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
http://ftp.gnome.org/pub/gnome/sourc...2.24.10.tar.xz

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

.

delis 06-03-2012 08: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 10:14 AM

Debian sources ..
http://packages.debian.org/search?se...s&keywords=gtk

e.g. Squeeze http://packages.debian.org/source/squeeze/gtk+2.0
→ → gtk+2.0_2.20.1.orig.tar.gz ( Bottom of the page.)
http://ftp.de.debian.org/debian/pool....1.orig.tar.gz

.

delis 06-03-2012 11:06 AM

Maybe this should be placed in the newbie section :p


All times are GMT -5. The time now is 08:12 AM.