doc | ||
gfm | ||
image | ||
lib | ||
src | ||
test | ||
.gitignore | ||
Rakefile | ||
Readme.md | ||
src2md.rb |
Gtk4 Tutorial for beginners
This tutorial illustrates how to write C programs with Gtk4 library. It focuses on beginners so the contents are limited to basic things. The table of contents are shown at the end of this abstract.
- Section 3 to 20 describes basics and the example is a simple editor
tfe
(Text File Editor). - Section 21 to 23 describes GtkDrawingArea.
- Section 24 to 27 describes list model and list view (GtkListView, GtkGridView and GtkColumnView). It also describes GtkExpression.
Please refer Gnome API reference for further topics.
This tutorial is under development and unstable. Even though the examples written in C language have been tested on gtk4 version 4.0, there might exist bugs. If you find any bugs, errors or mistakes in the tutorial and C examples, please let me know. You can post it to github issues. The latest version of the tutorial is located at Gtk4-tutorial github repository. You can read it without download.
If you want to get a html or pdf version, you can make them with rake
, which is a ruby version of make.
There is a documentation how to make them.
If you have a question, feel free to post an issue. Any question is helpful to make this tutorial get better.
Table of contents
- Prerequisite and License
- Installation of gtk4 to linux distributions
- GtkApplication and GtkApplicationWindow
- Widgets (1)
- Widgets (2)
- Widgets (3)
- Define Child object
- Ui file and GtkBuilder
- Build system
- Instance and class
- Signals
- Functions in TfeTextView
- Functions in GtkNotebook
- tfeapplication.c
- tfe5 source files
- Menu and action
- Stateful action
- Ui file for menu and action entries
- GtkMenuButton, accelerators, font, pango and gsettings
- Template XML
- GtkDrawingArea and Cairo
- Combine GtkDrawingArea and TfeTextView
- Tiny turtle graphics interpreter
- GtkListView
- GtkGridView and activate signal
- GtkExpression
- GtkColumnView