GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How To Get Gtk Api Documentation Help (Nothing In man?)

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
Fred Harris
Familiar Face


Joined: 19 Apr 2008
Posts: 5

PostPosted: Sat Apr 26, 2008 7:15 pm    Post subject: How To Get Gtk Api Documentation Help (Nothing In man?) Reply with quote

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?
Back to top
dreblen
Familiar Face


Joined: 14 Jun 2007
Posts: 38

PostPosted: Sat Apr 26, 2008 9:58 pm    Post subject: Reply with quote

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
Back to top
Fred Harris
Familiar Face


Joined: 19 Apr 2008
Posts: 5

PostPosted: Sat Apr 26, 2008 11:13 pm    Post subject: Reply with quote

Thanks dreblen! Exactly what I needed to know!

Fred :D
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 427
Location: Portland, OR USA

PostPosted: Mon Apr 28, 2008 2:16 pm    Post subject: Reply with quote

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.
Back to top
Fred Harris
Familiar Face


Joined: 19 Apr 2008
Posts: 5

PostPosted: Thu May 01, 2008 2:24 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP