I would suggest:
1) Install Ubuntu Precise instead if possible. This will give you gtk 3.4.1. which is close to the newest stable version (3.4.2.)
Either: Search it in Software Center. OR search for and install "Synaptic Package Manager" then install gtk from there (see instructions below)
2) If for some reason you can't change your Ubuntu version (slow computer ect.) Install gtk+-3.0.8 using Synaptic Package Manager. I suggest logging in to "Ubuntu Classic (no effects)" especially for older computers.
http://www.ubuntugeek.com/ubuntu-11-04-natty-ui-options-for-beginners.htmlYou'll learn far more by
not using an IDE like Anjuta when your starting out. Compiling from the command line will teach you vital skills and eliminate errors that may arise from the IDE.
To install GTK using Synaptic Package Manager:
1) System->Administration->Synaptic Package Manager
2) Enter your password and click "OK"
3) The left-most column is the package categories, make sure your on "ALL"
4) In the top middle of the screen, under the words: "Quick Filter" type this in the box: libgtk-3-dev
5) The list of search results is displayed.
6) Right or left click on on the box next to libgtk-3-dev and choose: "Mark for installation"
7) A box will open that says: "Mark for additional required changes?"
(There will be three additional things listed in the box: libgtk-3-0, libgtk-3-bin, libgtk-3-common)
8) Choose "Mark"
9) Repeat the process for libgtk-3-doc (the gtk documentation)
10) Repeat the process for devhelp (I can't remember if this is installed by default) Make sure you install "devhelp-common"
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Devhelp will be installed under: Applications->Programming.
If Devhelp isn't visible:
1) Right click over the word "Applications" and choose "Edit Menus".
2) Expand the category called "Applications"
3) Click on "Programming"
4) Click on the "Show" box next to Devhelp.
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Setup Gedit for you code editor:
1) Go to: Applications->Accessories->Text Editor. (The editor is called Gedit.)
2) In Gedit go to: Edit->Preferences
3) Click on the tab called "Plugins"
4) Choose "Devhelp support"
5) Click the button "Configure Plugin"
6) Save your file as yourprogramname.c This will enable c code highlighting. Then enter your gtk code.
7) When you want documentation about something, say a button (GtkButton) highlight the word "GtkButton" then press the "F2" key.
8) The documentation will open and take you directly to the info about GtkButton.
9) In devhelp go to: Edit->Preferences->Book Shelf
10) Check the books you want. For instance maybe you don't want: "Gtk+ 2 Reference Manual" now that your using gtk3.
-----------------------------------------------------------------------------------------
Compile and run you GTK programs using the command line:
1) Press "CTRL+ALT+T" to launch the terminal.
If the terminal doesn't launch or if you want to change the short cut keys to launch it go to: System->Preferences->Keyboard Shortcuts
2) Type: cd directoryofyourcode
For example, my code is in: home/zerohour/gtk/programming. Then it's broken down into various folder such as "GtkButton"; "GtkCalendar" ect. So to change directories to the folder "GtkButton" I would enter:
cd gtk/programming/GtkButton
You can get the location of your code file by going to:
1) Places->Home Folder
2) Navigate to your gtk program.
3) Right click on the file and go to "properities"
4) Copy the Location.
5) In the terminal type "cd" then paste the location using: CTRL+SHIFT+v and press enter.
To go up a directory type the following with a space in between the "d" and the "."
cd ..
To retype something that you previously typed press the up and down arrow keys.
To clear the screen type: clear
To list all files and folders in a directory type: ls
I highly recommend looking at command line tutorials for at least the basic commands:
cd, ls, cp, mv, cat, mkdir, sudo, chmod
https://help.ubuntu.com/community/UsingTheTerminalhttp://linuxcommand.org/lc3_learning_the_shell.phphttp://www.stat.tamu.edu/~dahl/teaching/605/1.20/shell-tutorial/html/index.htmlhttp://www.cyberciti.biz/faq/copy-command/http://www.cyberciti.biz/faq/howto-use-cat-command-in-unix-linux-shell-script/http://www.cyberciti.biz/faq/move-a-directory-linux-command/http://www.youtube.com/watch?v=6kxK8Fqcs5o