|
|
| Author |
Message |
|
|
Fred Harris Familiar Face
Joined: 19 Apr 2008 Posts: 5
|
Posted: Sat Apr 26, 2008 7:15 pm Post subject: How To Get Gtk Api Documentation Help (Nothing In man?) |
|
|
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 GTK+ Guru
Joined: 14 Jun 2007 Posts: 251 Location: Falun, WI USA
|
Posted: Sat Apr 26, 2008 9:58 pm Post subject: |
|
|
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
|
Posted: Sat Apr 26, 2008 11:13 pm Post subject: |
|
|
Thanks dreblen! Exactly what I needed to know!
Fred :D |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 481 Location: Portland, OR USA
|
Posted: Mon Apr 28, 2008 2:16 pm Post subject: |
|
|
| 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
|
Posted: Thu May 01, 2008 2:24 am Post subject: |
|
|
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 |
|
 |
|