Low-level core library that forms the basis for projects such as GTK+ and GNOME.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Michael Catanzaro 98e0789fea
Merge branch 'weak-refs-docs' into 'main'
1 year ago
.gitlab-ci ci: Add -fstack-protector to mingw64 cross file 1 year ago
docs gversionmacros: Add version macros for GLib 2.72 2 years ago
fuzzing docs: Update various external links to use HEAD instead of master 2 years ago
gio Fix cast from pointer to integer of different size warning in gio/gwin32appinfo.c 1 year ago
glib Merge branch 'datetime-typo-fix' into 'main' 1 year ago
gmodule API: Add g_module_open_full() 2 years ago
gobject Merge branch 'weak-refs-docs' into 'main' 1 year ago
gthread Meson: Override every dependency glib provides 3 years ago
m4macros m4macros: Increment serial number of glib-2.0.m4 2 years ago
po Update Croatian translation 1 year ago
subprojects update the proxy-libintl subproject to the latest release 1 year ago
tests Port internal uses to use g_source_set_static_name() 2 years ago
.clang-format CI: Code check formating in CI 3 years ago
.dir-locals.el Add .dir-locals.el to tell Emacs users not to use tabs for C 11 years ago
.gitattributes git: Add .gitattributes file with EOL settings for README.win32 6 years ago
.gitignore build: Drop autotools support 4 years ago
.gitlab-ci.yml ci: Use the new CI images 1 year ago
AUTHORS docs: Rename README.in to README.md for GitLab 5 years ago
CONTRIBUTING.md Rename the master branch to main 2 years ago
COPYING Update COPYING file to LGPLv2.1 6 years ago
HACKING docs: Update HACKING and README to mention Meson rather than autotools 4 years ago
INSTALL.in docs: Update INSTALL.in to mention Meson rather than autotools 4 years ago
NEWS 2.70.0 2 years ago
NEWS.pre-1-3 updates. 22 years ago
README docs: Rename README.in to README.md for GitLab 5 years ago
README.md docs: Mention the stable/unstable support version in README.md 2 years ago
README.rationale Document the stance on ID-based mainloop APIs 2 years ago
README.win32 README.win32: Update and convert to markdown 4 years ago
README.win32.md README.win32.md: Mention about Window 8+ SDK requirement 2 years ago
SECURITY.md docs: Add a note about git-evtag to SECURITY.md 2 years ago
check-abis.sh Correct shellcheck errors (and ignore world splitting when we want it) 2 years ago
clang-format-diff.py py: Reformat all Python files consistently 2 years ago
glib-gettextize.in tree: Fix various typos and outdated terminology 3 years ago
glib.doap docs: Update various external links to use HEAD instead of master 2 years ago
glib.supp glib.supp: Expand match kinds for g_get_language_names() suppressions 2 years ago
meson.build build: Bump Meson dependency to 0.52.0 1 year ago
meson_options.txt build: Drop the internal_pcre option in favour of the subproject 2 years ago
msvc_recommended_pragmas.h msvc_recommended_pragmas.h: Refine for clang-cl 2 years ago
template-tap.test.in tests: Remove redundant --tap options 4 years ago
template.test.in Meson: Install glib tests 5 years ago



GLib is the low-level core library that forms the basis for projects such as GTK and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.

The official download locations are: https://download.gnome.org/sources/glib

The official web site is: https://www.gtk.org/


See the file 'INSTALL.in'

Supported versions

Only the most recent unstable and stable release series are supported. All older versions are not supported upstream and may contain bugs, some of which may be exploitable security vulnerabilities.

See SECURITY.md for more details.

How to report bugs

Bugs should be reported to the GNOME issue tracking system. (https://gitlab.gnome.org/GNOME/glib/issues/new). You will need to create an account for yourself.

In the bug report please include:

  • Information about your system. For instance:
    • What operating system and version
    • For Linux, what version of the C library
    • And anything else you think is relevant.
  • How to reproduce the bug.
    • If you can reproduce it with 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.


Patches should also be submitted as merge requests to gitlab.gnome.org. If the patch fixes an existing issue, please refer to the issue in your commit message with the following notation (for issue 123): Closes: #123

Otherwise, create a new merge request that introduces the change, filing a separate issue is not required.

Default branch renamed to main

The default development branch of GLib has been renamed to main. To update your local checkout, use:

git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main