GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Sep 02, 2014 4:16 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How To Get Gtk Api Documentation Help (Nothing In man?)
PostPosted: Sat Apr 26, 2008 7:15 pm 
Offline
Familiar Face

Joined: Sat Apr 19, 2008 8:24 pm
Posts: 5
Just did a sudo aptitude install devhelp libgtk2.0-doc as per Micah Carrick's directions elsewhere. It appears to have succeeded, but I don't know how to access any of it (Yes, I'm a newbie to Linux...).

In my adventures with XLib I have found that if I'm in the Terminal and I do for example a ...

man XOpenDisplay

I'll get the installed man pages for that XLib function. The same was helpful to me in my Motif/Lesstif endeavors, as for example I'll get the same result with...

man XtAppInitialize

for the results of that Xt function. But if I try...

man gtk_init

all I get is ...

No manual entry for gtk_init

I'm really at a pretty basic level here. I use GEdit to write code and command line compile in the Terminal. What would be the best way for me to access the Api documentation? The man pages were OK by me, but they don't seem to work with Gtk. Most of the time when I'm coding I'm not connected, so I'd rather have it installed locally. Any thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 26, 2008 9:58 pm 
Offline
Never Seen the Sunlight

Joined: Thu Jun 14, 2007 11:02 pm
Posts: 923
Location: Falun, WI USA
if you install the libgtk2.0-doc package, the api docs should be located in
/usr/share/doc/libgtk2.0-doc/
then in a folder for the topic you want (gtk, gdk etc.) open index.html


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 26, 2008 11:13 pm 
Offline
Familiar Face

Joined: Sat Apr 19, 2008 8:24 pm
Posts: 5
Thanks dreblen! Exactly what I needed to know!

Fred :D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 28, 2008 2:16 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
If you installed devhelp, you can browse and search the documentation like that. Devhelp can be launced by typing 'devhelp' into a terminal or (in GNOME) under the 'Applications' > 'Programming' -> 'Devhelp' menu.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 01, 2008 2:24 am 
Offline
Familiar Face

Joined: Sat Apr 19, 2008 8:24 pm
Posts: 5
Thanks Micah! I didn't know that either. After following dreblen's directions I bookmarked that index.html file so that worked good. Today I tried your advice and that also worked too. Wonderful!

What with Andrew's GTK book and all the docs I'm in good shap!

Fred


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group