{"id":22815905,"url":"https://github.com/miqueas/gtk-examples","last_synced_at":"2025-04-22T21:13:49.517Z","repository":{"id":112743849,"uuid":"608728735","full_name":"Miqueas/GTK-Examples","owner":"Miqueas","description":"GTK examples in different programming languages","archived":false,"fork":false,"pushed_at":"2024-12-30T16:41:31.000Z","size":1286,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T21:13:40.527Z","etag":null,"topics":["c","c-language","c-programming","examples","examples-c","examples-gtk","examples-lua","examples-vala","gtk","gtk3","gtk4","lgi","lua","lua51","lua52","lua53","lua54","vala","vala-developers","vala-development"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miqueas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T16:06:59.000Z","updated_at":"2025-04-03T13:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f35dc142-26c7-4df8-95b1-1924b7037786","html_url":"https://github.com/Miqueas/GTK-Examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FGTK-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FGTK-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FGTK-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FGTK-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miqueas","download_url":"https://codeload.github.com/Miqueas/GTK-Examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324708,"owners_count":21411946,"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":["c","c-language","c-programming","examples","examples-c","examples-gtk","examples-lua","examples-vala","gtk","gtk3","gtk4","lgi","lua","lua51","lua52","lua53","lua54","vala","vala-developers","vala-development"],"created_at":"2024-12-12T14:05:40.293Z","updated_at":"2025-04-22T21:13:49.492Z","avatar_url":"https://github.com/Miqueas.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License][LicenseBadge]][LicenseURL]\n\n# GTK Examples\n\n\u003e [!NOTE]\n\u003e _\"It's been X days/weeks/months since last commit, is this project still maintained?\"_\n\u003e __Yes__. I'm just busy working :)\n\nA set of various GTK code examples in different programming languages.\n\n![GTK Examples Banner](banner.png)\n\n## Building and running\n\nThe main requirement to build and run the (C and Vala) examples is to have:\n\n  - Development files for GTK (3 and 4)\n  - Meson\n  - C and Vala compilers\n\n\u003e [!NOTE]\n\u003e You might also need the GLEW development files (needed by the glarea example), try building and running first to see if everything it's ok\n\nThen just run:\n\n```\nmeson setup _BUILD .\nninja -C _BUILD\n```\n\nAnd that's it! You'll found compiled binaries under the following folders:\n\n  - _BUILD/c/ for the C examples\n  - _BUILD/vala/ for the Vala examples\n\n### Lua\n\nIn the case of the Lua examples, they're supposed to run on any version of Lua, and the only requirement is to have [LGI](https://github.com/lgi-devs/lgi) installed, BUT: I highly recommend you to have the Git version. That's because the Git version supports GTK 4 and libadwaita, so you'll be sure every example will work.\n\n\u003e [!WARNING]\n\u003e To build [LGI](https://github.com/lgi-devs/lgi) you'll need `gobject-introspection`, check out the [LGI repo](https://github.com/lgi-devs/lgi) for more details if you're having trouble.\n\n## About this repository\n\nI decided to merge all my repos with GTK examples here because I feel that having different repos for the same purpose and with (basically) the same code is a mess, so I prefer to have all these examples in one place.\n\n## About some examples\n\nNote that GTK 3 and 4 are considerably different, which means that I'll try to have the same examples for both versions, but not all of them will be present in both versions. That said, here's a list of notes about some of the examples:\n\n  - GtkDialog: GTK 3 only, this class was deprecated in GTK 4.10\n  - GtkAssistant: in GTK 3 you can set a subtitle in the header bar, but not in GTK 4 because there's no subtitle property in GtkHeaderBar.\n  - GtkCssProvider: in GTK 4 this class was deprecated in GTK 4.10, the example is still present, but it's slightly different\n\n[LicenseBadge]: https://img.shields.io/badge/License-Zlib-brightgreen?style=for-the-badge\n[LicenseURL]: https://opensource.org/licenses/Zlib","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueas%2Fgtk-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiqueas%2Fgtk-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueas%2Fgtk-examples/lists"}