{"id":13603936,"url":"https://github.com/ToshioCP/Gtk4-tutorial","last_synced_at":"2025-04-11T22:32:03.935Z","repository":{"id":40199377,"uuid":"323326765","full_name":"ToshioCP/Gtk4-tutorial","owner":"ToshioCP","description":"GTK 4 tutorial for beginners","archived":false,"fork":false,"pushed_at":"2024-02-03T08:34:48.000Z","size":5506,"stargazers_count":507,"open_issues_count":0,"forks_count":46,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-03-19T08:36:06.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://toshiocp.github.io/Gtk4-tutorial/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ToshioCP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-21T12:14:46.000Z","updated_at":"2024-05-30T02:33:34.750Z","dependencies_parsed_at":"2023-02-18T17:45:54.294Z","dependency_job_id":"95bfd595-9cb9-407d-b136-5231270852e0","html_url":"https://github.com/ToshioCP/Gtk4-tutorial","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToshioCP%2FGtk4-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToshioCP%2FGtk4-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToshioCP%2FGtk4-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToshioCP%2FGtk4-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToshioCP","download_url":"https://codeload.github.com/ToshioCP/Gtk4-tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489752,"owners_count":21112632,"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-08-01T19:00:36.807Z","updated_at":"2025-04-11T22:32:00.720Z","avatar_url":"https://github.com/ToshioCP.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# GTK 4 Tutorial for beginners\n\nThe GitHub page of this tutorial is also available. Click [here](https://toshiocp.github.io/Gtk4-tutorial/).\n\n#### Contents of this Repository\n\nThis tutorial illustrates how to write C programs with the GTK 4 library.\nIt focuses on beginners so the contents are limited to the basics.\nThe table of contents is at the end of this abstract.\n\n- Section 3 to 23 describes the basics, with the example of a simple editor `tfe` (Text File Editor).\n- Section 24 to 27 describes GtkDrawingArea.\n- Section 28 describes Drag and Drop.\n- Section 29 to 33 describes the list model and the list view (GtkListView, GtkGridView and GtkColumnView).\nIt also describes GtkExpression.\n\nThe latest version of the tutorial is located at [GTK4-tutorial GitHub repository](https://github.com/ToshioCP/Gtk4-tutorial).\nYou can read it directly without download.\n\nThere's a [GitHub Page](https://toshiocp.github.io/Gtk4-tutorial/) which is the HTML version of the tutorial.\n\n#### GTK 4 Documentation\n\nPlease refer to [GTK 4 API Reference](https://docs.gtk.org/gtk4/index.html)\nand [GNOME Developer Documentation Website](https://developer.gnome.org/) for further information.\n\nThese websites were opened in August of 2021.\nThe old documents are located at [GTK Reference Manual](https://developer-old.gnome.org/gtk4/stable/) and [GNOME Developer Center](https://developer-old.gnome.org/).\n\nIf you want to know about GObject and the type system, please refer to [GObject tutorial](https://github.com/ToshioCP/Gobject-tutorial).\nGObject is the base of GTK 4, so it is important for developers to understand it as well as GTK 4.\n\n#### Contribution\n\nThis tutorial is still under development and unstable.\nEven though the codes of the examples have been tested on GTK 4 (version 4.10.1), bugs may still exist.\nIf you find any bugs, errors or mistakes in the tutorial and C examples, please let me know.\nYou can post it to [GitHub issues](https://github.com/ToshioCP/Gtk4-tutorial/issues).\nYou can also post updated files to [pull request](https://github.com/ToshioCP/Gtk4-tutorial/pulls).\nOne thing you need to be careful is to correct the source files, which are under the 'src' directory.\nDon't modify the files under `gfm` or `html` directories.\nAfter modifying some source files , run `rake` to create GFM (GitHub Flavoured Markdown) files and run `rake html` to create HTML files.\n\nIf you have a question, feel free to post it to `issue`.\nAll questions are helpful and will make this tutorial get better.\n\n#### How to get Gtk 4 tutorial with HTML or PDF format\n\nIf you want to get HTML or PDF format tutorial, make them with `rake` command, which is a ruby version of make.\nType `rake html` for HTML.\nType `rake pdf` for PDF.\nThere is a document \\(\"[How to build GTK 4 Tutorial](gfm/Readme_for_developers.md)\"\\) for further information.\n\n#### License\n\nThe license of this repository is written in [Section1](gfm/sec1.md).\nIn short,\n\n- GFDL1.3 for documents\n- GPL3 for programs\n\n## Table of contents\n\n1. [Prerequisite and License](gfm/sec1.md)\n1. [Preparation](gfm/sec2.md)\n1. [GtkApplication and GtkApplicationWindow](gfm/sec3.md)\n1. [Widgets (1)](gfm/sec4.md)\n1. [Widgets (2)](gfm/sec5.md)\n1. [Strings and memory management](gfm/sec6.md)\n1. [Widgets (3)](gfm/sec7.md)\n1. [Defining a final class](gfm/sec8.md)\n1. [GtkBuilder and UI file](gfm/sec9.md)\n1. [Build system](gfm/sec10.md)\n1. [Instance Initialization and destruction](gfm/sec11.md)\n1. [Signals](gfm/sec12.md)\n1. [TfeTextView class](gfm/sec13.md)\n1. [Functions in GtkNotebook](gfm/sec14.md)\n1. [Tfe main program](gfm/sec15.md)\n1. [How to build tfe (text file editor)](gfm/sec16.md)\n1. [Menus and actions](gfm/sec17.md)\n1. [Stateful action](gfm/sec18.md)\n1. [Ui file for menu and action entries](gfm/sec19.md)\n1. [Composite widgets and alert dialog](gfm/sec20.md)\n1. [GtkFontDialogButton and Gsettings](gfm/sec21.md)\n1. [TfeWindow](gfm/sec22.md)\n1. [Pango, CSS and Application](gfm/sec23.md)\n1. [GtkDrawingArea and Cairo](gfm/sec24.md)\n1. [Periodic Events](gfm/sec25.md)\n1. [Custom drawing](gfm/sec26.md)\n1. [Tiny turtle graphics interpreter](gfm/sec27.md)\n1. [Drag and drop](gfm/sec28.md)\n1. [GtkListView](gfm/sec29.md)\n1. [GtkGridView and activate signal](gfm/sec30.md)\n1. [GtkExpression](gfm/sec31.md)\n1. [GtkColumnView](gfm/sec32.md)\n1. [GtkSignalListItemFactory](gfm/sec33.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToshioCP%2FGtk4-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FToshioCP%2FGtk4-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToshioCP%2FGtk4-tutorial/lists"}