Вы находитесь на странице: 1из 1

Ubuntu Community Ask!

Developer Design Discourse Hardware Insights Juju Shop More


How do I Install GTK+ 3.0?

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

11.10 gtk

edited Feb 4 '12 at 23:55 asked Feb 4 '12 at 9:35


Octavian Damiean Rrj
9,751 5 41 59 1,759 2 10 29

3 Answers

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.

answered Feb 4 '12 at 10:48


Timo
3,467 1 6 20

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? Rrj 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? Rrj Feb 4 '12 at 12:56

@Nick if you have questions about specic 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

edited Jan 16 '13 at 1:20 answered Jan 15 '13 at 23:49


Eliah Kagan thomio
52.3k 15 152 243 791 5 8

Read this

They have describe specically on their website

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

answered Feb 4 '12 at 10:21


yanglifu90
216 1 2 12

Вам также может понравиться