Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I install GTK+ 3.0 on Ubuntu 11.10 and use that instead of GTK+ 2.24?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

GTK3 is installed by default, please don't download and compile from the GTK website.

If you want to use GTK3 yourself, compile against that instead GTK2, or use PyGObject instead of PyGTK if you're using Python.

If you want all programs to use GTK3 instead of GTK2, it won't work, it's a job for the application developers to port their application.

share|improve this answer
    
How can it be installed by default when i enter the command: dpkg -l libgtk[0-9]* | grep ^i and i get that im using GTK 2.24? –  Nickolas Feb 4 '12 at 11:33
    
The package name changed a bit, try this: dpkg -l libgtk-[0-9]* | grep ^i –  Timo Feb 4 '12 at 11:49
    
Also note that GTK2 and GTK3 are parellel installable. So it's not that you are using one or the other, it's the applications that choose which version. –  Timo Feb 4 '12 at 11:51
    
Thanks for your help,i can see that some of ubuntu apps (like gedit or epiphany) use GTK+3 from their design and new styling.But in my anjuta app i have chosen GTK+ 3.0 and i still see the old GTK+ 2 style and i dont see any errors in the code(since 3 has replaced some methods) What is happening? –  Nickolas Feb 4 '12 at 12:56
    
@Nick if you have questions about specific apps, it would be better to ask a new question. We wouldn't want useful information to get lost in the comments. :) –  michaelms Feb 5 '12 at 0:24

To use gtk2 or gtk3 apps you don't need to install anything. But, if you want to develop (or even just compile) apps this is what you're looking for:

sudo apt-get install libgtk-3-dev
share|improve this answer

Read this

They have describe specifically on their website

http://www.gtk.org/download/linux.php

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.