GTK, which stands for the Gimp ToolKit, is a library for creating graphical user interfaces. It is designed to be small and efficient, but still flexible enough to allow the programmer freedom in the interfaces created. GTK provides some unique features over standard widget libraries.
| Tags | Desktop Environment Software Development Libraries Application Frameworks Widget Sets |
|---|---|
| Licenses | LGPL |
| Operating Systems | POSIX |
| Implementation | C |
Recent releases


Changes: GtkEntry now has model-view separation with GtkEntryBuffer, intended to support 'secure memory' for password entries. The print dialog can now optionally include the page setup controls, avoiding the need for a separate page setup dialog. Coloring of visited links in GtkLabel can now be turned off. Support for clipmasks in gdk_draw_pixbuf now works. A number of regressions from the client-side window merge were fixed. The directfb GDK backend was fixed to build with csw. Several other bugs were fixed. Translations were updated.


Changes: GtkFileChooser now shows the size column by default. A title property was added to GtkStatusIcon. GtkMountOperation now supports interaction during unmount operations. GDK now maintains its own window hierarchy client-side, and only uses X windows where unavoidable. This results in reduced flicker, the ability to do transformed and animated rendering of widgets, and easier embedding of GTK+ widgets, but is a fundamental change to the way GDK works. Several minor bugs were fixed.


Changes: A side-effect introduced by a recent bugfix that caused all stock buttons to lose their mnemonics was now fixed.


Changes: Several minor bugs were fixed. Translations were updated.


Changes: GtkInfoBar was added. GtkButtonBox now implements the GtkOrientable interface. GtkFileChooser's behavior was improved. Printing now supports an application-defined page range selection. Many bugs were fixed.
- All comments
Recent commentsRe: ARgh...
>>our problem probably still has to do with the /usr vs /usr/
local/ business. you might want to install gtk (et.al.) with
'configure --prefix=/usr'
i've been trying to install GImageViewer on Suse 10.1 for
more than a day now... this advice was all I needed. Thank
you so much!
Re: Where is gtk-config?
> What wrong? Where is gtk-config?
gtk-config was part of gtk+-1.x. gtk+-2.x uses pkg-
config instead. if your app wants gtk-config, it wants
gtk+-1.x and its devel packages.
Re: Can't get programs to recognize GTK+-1.2.0
> Hi Rob, you seem to know what you're
> doing so I'm hoping you can help me out.
> I've installed gtk+-2.2.4 from source
> and removed my old gtk-config
> beforehand, but now I can't find
> gtk-config anywhere on my system. Have
> I done something wrong? I used all the
> default options when installing
> i.e ./configure
> make
> su
> make install
>
> and gtk was installed in /usr/local
>
> no sign of gtk-config though!
>
> I'm tearing my hair out over this one!
> (I'm trying to get gimp2.0pre2 installed
> without much success!)
the directions above are outdated wrt gtk2.0
which now uses pkg-config (a generalization of gtk-config). you therefore don't need to mess with
the gtk-config stuff.
your problem probably still has to do with the /usr vs /usr/local/ business. you might want to install gtk (et.al.) with 'configure --prefix=/usr' or you might want to mess with your pkg-config path...perhaps 'export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig'
good luck.
Re: Can't get programs to recognize GTK+-1.2.0
Hi Rob, you seem to know what you're doing so I'm hoping you can help me out. I've installed gtk+-2.2.4 from source and removed my old gtk-config beforehand, but now I can't find gtk-config anywhere on my system. Have I done something wrong? I used all the default options when installing
i.e ./configure
make
su
make install
and gtk was installed in /usr/local
no sign of gtk-config though!
I'm tearing my hair out over this one! (I'm trying to get gimp2.0pre2 installed without much success!)
>
> % I resently d/l the Enlightenment WM
> % v0.15.5 and I wanted the e-conf
> program,
> % but it needs gnome-libs so i d/l that
> % when I tried to compile it, it said
> that
> % i needed gtk+-1.2.0, which i have.
> It
> % gave me an error about the libraries
> not
> % matching the header files. Headers=
> % v1.0.2 and Libraries=v1.2.0
> %
> % What should I do to resolve the
> % problem?
> %
> % Thanks
>
>
>
> a couple of things :
> the tarballs generally install to
> /usr/local/
> whereas (for example) redhat installs
> stuff under
> /usr. configure is probably still
> looking at the
> one in /usr.
>
> to fix this: rm /usr/bin/gtk-config
> make sure /usr/local/bin
> is on your
> path
> and /usr/local/lib is in
> /etc/ld.so.conf
>
> before running configure you should be
> able to
> type `gtk-config --version` and it
> should return
> with the version number you just
> installed.
>
> alternately, you can reinstall the gtk
> pacakges
> and glib under /usr by doing
> 'configure --prefix=/usr' but you have
> to
> remember to do that for all the pacakges
> and it
> seems like most packages want to go
> under /usr/local/.
>
> hope it helps
> rob
Where is gtk-config?
I have installed (from sources) GTK-2.2.4 in /usr/local/lib/gtk-2.0, but some programs can't find it. For exemple, while configuring XMMS:
checking for gtk-config... (cached) /usr/local/lib/gtk-2.0/bin/gtk-config
checking for GTK - version >= 1.2.2... ./configure: /usr/local/lib/gtk-2.0/bin/gtk-config: No such file or directory
./configure: /usr/local/lib/gtk-2.0/bin/gtk-config: No such file or directory
./configure: /usr/local/lib/gtk-2.0/bin/gtk-config: No such file or directory
./configure: /usr/local/lib/gtk-2.0/bin/gtk-config: No such file or directory
./configure: /usr/local/lib/gtk-2.0/bin/gtk-config: No such file or directory
no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/local/lib/gtk-2.0/bin/gtk-config
configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***
What wrong? Where is gtk-config?
Sorry, if my English scare you...