LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-03-2012, 08:19 AM   #1
delis
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Rep: Reputation: Disabled
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!
 
Old 06-03-2012, 08:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,924

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
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.

.

Last edited by knudfl; 06-03-2012 at 08:34 AM.
 
1 members found this post helpful.
Old 06-03-2012, 08:49 AM   #3
delis
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-03-2012, 10:14 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,924

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
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

.
 
1 members found this post helpful.
Old 06-03-2012, 11:06 AM   #5
delis
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Maybe this should be placed in the newbie section
 
  


Reply

Tags
debian, gtk, packages, source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to add Debian Squeeze to your Debian Lenny FAI install server LXer Syndicated Linux News 0 09-08-2011 07:21 PM
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 03:55 AM
LXer: How To Upgrade Debian Lenny (Debian 5.0) To Squeeze (Debian 6.0) On Xen VPS LXer Syndicated Linux News 0 03-09-2011 05:20 AM
LXer: Goodbye Fedora, welcome back Debian, Part 2: Review of Debian Squeeze LXer Syndicated Linux News 0 12-02-2010 09:00 AM
question about aptitude-gtk in squeeze radiodee1 Debian 2 04-27-2010 02:23 PM


All times are GMT -5. The time now is 04:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration