{"id":15108810,"url":"https://github.com/gnome/gtk","last_synced_at":"2025-05-14T15:08:57.855Z","repository":{"id":3481798,"uuid":"4537276","full_name":"GNOME/gtk","owner":"GNOME","description":"Read-only mirror of https://gitlab.gnome.org/GNOME/gtk","archived":false,"fork":false,"pushed_at":"2025-05-10T12:09:52.000Z","size":735653,"stargazers_count":1539,"open_issues_count":0,"forks_count":386,"subscribers_count":79,"default_branch":"main","last_synced_at":"2025-05-10T13:23:14.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitlab.gnome.org/GNOME/gtk","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GNOME.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"docs/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-06-03T13:03:40.000Z","updated_at":"2025-05-10T13:15:50.000Z","dependencies_parsed_at":"2023-12-18T10:54:27.990Z","dependency_job_id":"19009235-f8bc-4159-9a75-e0e171a25f86","html_url":"https://github.com/GNOME/gtk","commit_stats":null,"previous_names":[],"tags_count":834,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNOME%2Fgtk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNOME%2Fgtk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNOME%2Fgtk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNOME%2Fgtk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GNOME","download_url":"https://codeload.github.com/GNOME/gtk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169831,"owners_count":22026215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T22:40:45.698Z","updated_at":"2025-05-14T15:08:52.834Z","avatar_url":"https://github.com/GNOME.png","language":"C","readme":"GTK — The GTK toolkit\n=====================\n\n[![Build status](https://gitlab.gnome.org/GNOME/gtk/badges/main/pipeline.svg)](https://gitlab.gnome.org/GNOME/gtk/-/commits/main)\n\nGeneral information\n-------------------\n\nGTK is a multi-platform toolkit for creating graphical user interfaces.\nOffering a complete set of widgets, GTK is suitable for projects ranging\nfrom small one-off projects to complete application suites.\n\nGTK is a free and open-source software project. The licensing terms\nfor GTK, the GNU LGPL, allow it to be used by all developers, including those\ndeveloping proprietary software, without any license fees or royalties.\n\nGTK is hosted by the GNOME project (thanks!) and used by a wide variety\nof applications and projects.\n\nThe official download location\n\n  - https://download.gnome.org/sources/gtk/\n\nThe official web site\n\n  - https://www.gtk.org\n\nThe official developers blog\n\n  - https://blog.gtk.org\n\nDiscussion forum\n\n  - https://discourse.gnome.org/c/platform/core/\n\nNightly documentation can be found at\n  - Gtk: https://gnome.pages.gitlab.gnome.org/gtk/gtk4/\n  - Gdk: https://gnome.pages.gitlab.gnome.org/gtk/gdk4/\n  - Gsk: https://gnome.pages.gitlab.gnome.org/gtk/gsk4/\n\nNightly flatpaks of our demos can be installed from the\n[GNOME Nightly](https://nightly.gnome.org/) repository:\n\n```sh\nflatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo\nflatpak install gnome-nightly org.gtk.Demo4\nflatpak install gnome-nightly org.gtk.WidgetFactory4\nflatpak install gnome-nightly org.gtk.IconBrowser4\n```\n\nBuilding and installing\n-----------------------\n\nIn order to build GTK you will need:\n\n  - [a C11 compatible compiler](https://gitlab.gnome.org/GNOME/glib/-/blob/main/docs/toolchain-requirements.md)\n  - [Python 3](https://www.python.org/)\n  - [Meson](http://mesonbuild.com)\n  - [Ninja](https://ninja-build.org)\n\nYou will also need various dependencies, based on the platform you are\nbuilding for:\n\n  - [GLib](https://download.gnome.org/sources/glib/)\n  - [GdkPixbuf](https://download.gnome.org/sources/gdk-pixbuf/)\n  - [GObject-Introspection](https://download.gnome.org/sources/gobject-introspection/)\n  - [Cairo](https://www.cairographics.org/)\n  - [Pango](https://download.gnome.org/sources/pango/)\n  - [Epoxy](https://github.com/anholt/libepoxy)\n  - [Graphene](https://github.com/ebassi/graphene)\n  - [Xkb-common](https://github.com/xkbcommon/libxkbcommon)\n\nIf you are building the Wayland backend, you will also need:\n\n  - Wayland-client\n  - Wayland-protocols\n  - Wayland-cursor\n  - Wayland-EGL\n\nIf you are building the X11 backend, you will also need:\n\n  - Xlib, and the following X extensions:\n    - xrandr\n    - xrender\n    - xi\n    - xext\n    - xfixes\n    - xcursor\n    - xdamage\n    - xcomposite\n\nOnce you have all the necessary dependencies, you can build GTK by using\nMeson:\n\n```sh\n$ meson setup _build\n$ meson compile -C_build\n```\n\nYou can run the test suite using:\n\n```sh\n$ meson test -C_build\n```\n\nAnd, finally, you can install GTK using:\n\n```\n$ sudo meson install -C_build\n```\n\nComplete information about installing GTK and related libraries\ncan be found in the file:\n\n```\ndocs/reference/gtk/html/gtk-building.html\n```\n\nOr [online](https://docs.gtk.org/gtk4/building.html)\n\nBuilding from git\n-----------------\n\nThe GTK sources are hosted on [gitlab.gnome.org](http://gitlab.gnome.org). The main\ndevelopment branch is called `main`, and stable branches are named after their minor\nversion, for example `gtk-4-10`.\n\nHow to report bugs\n------------------\n\nBugs should be reported on the [issues page](https://gitlab.gnome.org/GNOME/gtk/issues/).\n\nIn the bug report please include:\n\n* Information about your system. For instance:\n\n   - which version of GTK you are using\n   - what operating system and version\n   - what windowing system (X11 or Wayland)\n   - what graphics driver / mesa version\n   - for Linux, which distribution\n   - if you built GTK, the list of options used to configure the build\n\n  Most of this information can be found in the GTK inspector.\n\n  And anything else you think is relevant.\n\n* How to reproduce the bug.\n\n  If you can reproduce it with one of the demo applications that are\n  built in the demos/ subdirectory, on one of the test programs that\n  are built in the tests/ subdirectory, that will be most convenient.\n  Otherwise, please include a short test program that exhibits the\n  behavior. As a last resort, you can also provide a pointer to a\n  larger piece of software that can be downloaded.\n\n* If the bug was a crash, the exact text that was printed out\n  when the crash occurred.\n\n* Further information such as stack traces may be useful, but\n  is not necessary.\n\nContributing to GTK\n-------------------\n\nPlease, follow the [contribution guide](./CONTRIBUTING.md) to know how to\nstart contributing to GTK.\n\nIf you want to support GTK financially, please consider donating to\nthe GNOME project, which runs the infrastructure hosting GTK.\n\nRelease notes\n-------------\n\nThe release notes for GTK are part of the migration guide in the API\nreference. See:\n\n - [3.x release notes](https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html)\n - [4.x release notes](https://docs.gtk.org/gtk4/migrating-3to4.html)\n\nLicensing terms\n---------------\n\nGTK is released under the terms of the GNU Lesser General Public License,\nversion 2.1 or, at your option, any later version, as published by the Free\nSoftware Foundation.\n\nPlease, see the [`COPYING`](./COPYING) file for further information.\n\nGTK includes a small number of source files under the Apache license:\n- A fork of the roaring bitmaps implementation in [gtk/roaring](./gtk/roaring)\n- An adaptation of timsort from python in [gtk/timsort](./gtk/timsort)\n","funding_links":[],"categories":["Libraries"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnome%2Fgtk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnome%2Fgtk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnome%2Fgtk/lists"}