• Stars
    star
    1,275
  • Rank 35,395 (Top 0.8 %)
  • Language
    C
  • License
    Other
  • Created almost 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Read-only mirror of https://gitlab.gnome.org/GNOME/gtk

GTK — The GTK toolkit

Build status

General information

GTK is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK is suitable for projects ranging from small one-off projects to complete application suites.

GTK is a free and open-source software project. The licensing terms for GTK, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties.

GTK is hosted by the GNOME project (thanks!) and used by a wide variety of applications and projects.

The official download location

The official web site

The official developers blog

Discussion forum

Nightly documentation can be found at

Nightly flatpaks of our demos can be installed from the GNOME Nightly repository:

  • flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
  • flatpak install gnome-nightly org.gtk.Demo4
  • flatpak install gnome-nightly org.gtk.WidgetFactory4
  • flatpak install gnome-nightly org.gtk.IconBrowser4

Building and installing

In order to build GTK you will need:

You will also need various dependencies, based on the platform you are building for:

If you are building the Wayland backend, you will also need:

  • Wayland-client
  • Wayland-protocols
  • Wayland-cursor
  • Wayland-EGL

If you are building the X11 backend, you will also need:

  • Xlib, and the following X extensions:
    • xrandr
    • xrender
    • xi
    • xext
    • xfixes
    • xcursor
    • xdamage
    • xcomposite

Once you have all the necessary dependencies, you can build GTK by using Meson:

$ meson setup _build
$ meson compile -C_build

You can run the test suite using:

$ meson test -C_build

And, finally, you can install GTK using:

$ sudo meson install -C_build

Complete information about installing GTK and related libraries can be found in the file:

docs/reference/gtk/html/gtk-building.html

Or online

Building from git

The GTK sources are hosted on gitlab.gnome.org. The main development branch is called main, and stable branches are named after their minor version, for example gtk-4-10.

How to report bugs

Bugs should be reported on the issues page.

In the bug report please include:

  • Information about your system. For instance:

    • which version of GTK you are using
    • what operating system and version
    • for Linux, which distribution
    • if you built GTK, the list of options used to configure the build

    And anything else you think is relevant.

  • How to reproduce the bug.

    If you can reproduce it with one of the demo applications that are built in the demos/ subdirectory, on one of the test programs that are built in the tests/ subdirectory, that will be most convenient. Otherwise, please include a short test program that exhibits the behavior. As a last resort, you can also provide a pointer to a larger piece of software that can be downloaded.

  • If the bug was a crash, the exact text that was printed out when the crash occurred.

  • Further information such as stack traces may be useful, but is not necessary.

Contributing to GTK

Please, follow the contribution guide to know how to start contributing to GTK.

If you want to support GTK financially, please consider donating to the GNOME project, which runs the infrastructure hosting GTK.

Release notes

The release notes for GTK are part of the migration guide in the API reference. See:

Licensing terms

GTK is released under the terms of the GNU Lesser General Public License, version 2.1 or, at your option, any later version, as published by the Free Software Foundation.

Please, see the COPYING file for further information.

GTK includes a small number of source files under the Apache license:

  • A fork of the roaring bitmaps implementation in gtk/roaring
  • An adaptation of timsort from python in gtk/timsort

More Repositories

1

gimp

Read-only mirror of https://gitlab.gnome.org/GNOME/gimp
C
4,418
star
2

glib

Read-only mirror of https://gitlab.gnome.org/GNOME/glib
C
1,375
star
3

meld

Read-only mirror of https://gitlab.gnome.org/GNOME/meld
Python
949
star
4

vala

Read-only mirror of https://gitlab.gnome.org/GNOME/vala
Vala
786
star
5

gnome-shell

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-shell
C
715
star
6

libxml2

Read-only mirror of https://gitlab.gnome.org/GNOME/libxml2
C
479
star
7

gedit

Read-only mirror of https://gitlab.gnome.org/GNOME/gedit
C
399
star
8

geary

Read-only mirror of https://gitlab.gnome.org/GNOME/geary
Vala
353
star
9

dia

Read-only mirror of https://gitlab.gnome.org/GNOME/dia
C
324
star
10

librsvg

Read-only mirror of https://gitlab.gnome.org/GNOME/librsvg
Rust
313
star
11

nautilus

Read-only mirror of https://gitlab.gnome.org/GNOME/nautilus
C
307
star
12

evince

Read-only mirror of https://gitlab.gnome.org/GNOME/evince
C
301
star
13

gnome-terminal

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-terminal
C++
266
star
14

epiphany

Read-only mirror of https://gitlab.gnome.org/GNOME/epiphany
C
264
star
15

gparted

Read-only mirror of https://gitlab.gnome.org/GNOME/gparted
C++
254
star
16

gnome-builder

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-builder
C
232
star
17

glade

Read-only mirror of https://gitlab.gnome.org/GNOME/glade
C
206
star
18

rhythmbox

Read-only mirror of https://gitlab.gnome.org/GNOME/rhythmbox
C
192
star
19

mutter

Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
C
170
star
20

gitg

Read-only mirror of https://gitlab.gnome.org/GNOME/gitg
Vala
167
star
21

vte

Read-only mirror of https://gitlab.gnome.org/GNOME/vte
C++
161
star
22

gjs

Read-only mirror of https://gitlab.gnome.org/GNOME/gjs
C++
155
star
23

zenity

Read-only mirror of https://gitlab.gnome.org/GNOME/zenity
C
150
star
24

gtkmm

Read-only mirror of https://gitlab.gnome.org/GNOME/gtkmm
Scheme
147
star
25

shotwell

Read-only mirror of https://gitlab.gnome.org/GNOME/shotwell
Vala
145
star
26

pygobject

Read-only mirror of https://gitlab.gnome.org/GNOME/pygobject
Python
144
star
27

gthumb

Read-only mirror of https://gitlab.gnome.org/GNOME/gthumb
C
140
star
28

evolution

Read-only mirror of https://gitlab.gnome.org/GNOME/evolution
C
139
star
29

pango

Read-only mirror of https://gitlab.gnome.org/GNOME/pango
C
132
star
30

sushi

Read-only mirror of https://gitlab.gnome.org/GNOME/sushi
C
123
star
31

pitivi

Read-only mirror of https://gitlab.gnome.org/GNOME/pitivi
Python
120
star
32

gnome-music

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-music
Python
119
star
33

adwaita-icon-theme

Read-only mirror of https://gitlab.gnome.org/GNOME/adwaita-icon-theme
Python
113
star
34

gnome-boxes

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-boxes
Vala
112
star
35

baobab

Read-only mirror of https://gitlab.gnome.org/GNOME/baobab
Vala
104
star
36

orca

Read-only mirror of https://gitlab.gnome.org/GNOME/orca
Python
96
star
37

gnome-calendar

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-calendar
C
92
star
38

gdm

Read-only mirror of https://gitlab.gnome.org/GNOME/gdm
C
87
star
39

gnome-desktop

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-desktop
C
86
star
40

ocrfeeder

Read-only mirror of https://gitlab.gnome.org/GNOME/ocrfeeder
Python
84
star
41

gnome-control-center

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-control-center
C
80
star
42

gnome-screenshot

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-screenshot
C
78
star
43

gnumeric

Read-only mirror of https://gitlab.gnome.org/GNOME/gnumeric
C
77
star
44

gvfs

Read-only mirror of https://gitlab.gnome.org/GNOME/gvfs
C
76
star
45

gnome-system-monitor

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-system-monitor
C++
74
star
46

gegl

Read-only mirror of https://gitlab.gnome.org/GNOME/gegl
C
73
star
47

gnome-software

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-software
C
72
star
48

d-feet

Read-only mirror of https://gitlab.gnome.org/GNOME/d-feet
Python
71
star
49

gnome-tweaks

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-tweaks
Python
71
star
50

gnome-multi-writer

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-multi-writer
C
69
star
51

easytag

Read-only mirror of https://gitlab.gnome.org/GNOME/easytag
C
69
star
52

ghex

Read-only mirror of https://gitlab.gnome.org/GNOME/ghex
C
66
star
53

glibmm

Read-only mirror of https://gitlab.gnome.org/GNOME/glibmm
Scheme
62
star
54

gobject-introspection

Read-only mirror of https://gitlab.gnome.org/GNOME/gobject-introspection
C
61
star
55

gstreamermm

Read-only mirror of https://gitlab.gnome.org/GNOME/gstreamermm
Scheme
61
star
56

libadwaita

Read-only mirror of https://gitlab.gnome.org/GNOME/libadwaita
C
61
star
57

gnome-calculator

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-calculator
Vala
61
star
58

gnome-maps

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-maps
JavaScript
60
star
59

tracker

Read-only mirror of https://gitlab.gnome.org/GNOME/tracker
C
59
star
60

polari

Read-only mirror of https://gitlab.gnome.org/GNOME/polari
JavaScript
58
star
61

cheese

Read-only mirror of https://gitlab.gnome.org/GNOME/cheese
C
58
star
62

rygel

Read-only mirror of https://gitlab.gnome.org/GNOME/rygel
Vala
58
star
63

libsoup

Read-only mirror of https://gitlab.gnome.org/GNOME/libsoup
C
57
star
64

gnome-backgrounds

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-backgrounds
Meson
56
star
65

evolution-ews

Read-only mirror of https://gitlab.gnome.org/GNOME/evolution-ews
C
56
star
66

brasero

Read-only mirror of https://gitlab.gnome.org/GNOME/brasero
C
55
star
67

gnome-disk-utility

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-disk-utility
C
54
star
68

gtksourceview

Read-only mirror of https://gitlab.gnome.org/GNOME/gtksourceview
C
54
star
69

dasher

Read-only mirror of https://gitlab.gnome.org/GNOME/dasher
C
54
star
70

gnote

Read-only mirror of https://gitlab.gnome.org/GNOME/gnote
C++
53
star
71

libxslt

Read-only mirror of https://gitlab.gnome.org/GNOME/libxslt
HTML
53
star
72

totem

Read-only mirror of https://gitlab.gnome.org/GNOME/totem
C
52
star
73

libnotify

Read-only mirror of https://gitlab.gnome.org/GNOME/libnotify
C
51
star
74

gnome-shell-extensions

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-shell-extensions
JavaScript
50
star
75

simple-scan

Read-only mirror of https://gitlab.gnome.org/GNOME/simple-scan
Vala
48
star
76

file-roller

Read-only mirror of https://gitlab.gnome.org/GNOME/file-roller
C
48
star
77

libsecret

Read-only mirror of https://gitlab.gnome.org/GNOME/libsecret
C
46
star
78

cantarell-fonts

Read-only mirror of https://gitlab.gnome.org/GNOME/cantarell-fonts
Python
45
star
79

jhbuild

Read-only mirror of https://gitlab.gnome.org/GNOME/jhbuild
Python
44
star
80

gnome-settings-daemon

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-settings-daemon
C
44
star
81

recipes

Read-only mirror of https://gitlab.gnome.org/GNOME/recipes
C
43
star
82

eog

Read-only mirror of https://gitlab.gnome.org/GNOME/eog
C
41
star
83

seahorse

Read-only mirror of https://gitlab.gnome.org/GNOME/seahorse
C
39
star
84

fractal

Read-only mirror of https://gitlab.gnome.org/GNOME/fractal
Rust
38
star
85

evolution-activesync

Read-only mirror of https://gitlab.gnome.org/GNOME/evolution-activesync
C
38
star
86

gnome-chess

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-chess
Vala
37
star
87

gnome-commander

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-commander
C++
36
star
88

libgda

Read-only mirror of https://gitlab.gnome.org/GNOME/libgda
C
35
star
89

alacarte

Read-only mirror of https://gitlab.gnome.org/GNOME/alacarte
Python
34
star
90

msitools

Read-only mirror of https://gitlab.gnome.org/GNOME/msitools
C
33
star
91

nautilus-python

Read-only mirror of https://gitlab.gnome.org/GNOME/nautilus-python
C
33
star
92

gtkmm-documentation

Read-only mirror of https://gitlab.gnome.org/GNOME/gtkmm-documentation
Python
32
star
93

dconf-editor

Read-only mirror of https://gitlab.gnome.org/GNOME/dconf-editor
Vala
31
star
94

libgsf

Read-only mirror of https://gitlab.gnome.org/GNOME/libgsf
C
31
star
95

devhelp

Read-only mirror of https://gitlab.gnome.org/GNOME/devhelp
C
30
star
96

gedit-plugins

Read-only mirror of https://gitlab.gnome.org/GNOME/gedit-plugins
Python
27
star
97

metacity

Read-only mirror of https://gitlab.gnome.org/GNOME/metacity
C
27
star
98

sysprof

Read-only mirror of https://gitlab.gnome.org/GNOME/sysprof
C
26
star
99

gdk-pixbuf

Read-only mirror of https://gitlab.gnome.org/GNOME/gdk-pixbuf
C
25
star
100

gnome-online-accounts

Read-only mirror of https://gitlab.gnome.org/GNOME/gnome-online-accounts
C
25
star