Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 7 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? – Rrjrjtlokrthjji 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? – Rrjrjtlokrthjji 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. :) – Michael Martin-Smucker 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

share|improve this answer

Your Answer


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.