From e0386d5b21e9b9cd75b5f907b33c887298dc6a74 Mon Sep 17 00:00:00 2001 From: shulkk <74850058+shulkk@users.noreply.github.com> Date: Tue, 21 Jun 2022 19:56:15 -0500 Subject: [PATCH] Rakefile --- docs/index.md | 81 +++++++++++++++++++++++++++++++++ docs/template.html | 109 +++++++++++++++++++++++++++++++++++++++++++++ gfm/sec16.md | 20 ++++----- gfm/sec2.md | 19 ++++---- 4 files changed, 209 insertions(+), 20 deletions(-) create mode 100644 docs/index.md create mode 100644 docs/template.html diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..f1e2ba5 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,81 @@ +# Gtk4 Tutorial for beginners + +#### Contents of this Repository + +This tutorial illustrates how to write C programs with the Gtk4 library. +It focuses on beginners so the contents are limited to the basics. +The table of contents is at the end of this abstract. + +- Section 3 to 21 describes the basics, with the example of a simple editor `tfe` (Text File Editor). +- Section 22 to 25 describes GtkDrawingArea. +- Section 26 to 29 describes the list model and the list view (GtkListView, GtkGridView and GtkColumnView). +It also describes GtkExpression. + +The latest version of the tutorial is located at [Gtk4-tutorial github repository](https://github.com/ToshioCP/Gtk4-tutorial). +You can read it from there directly without having to download anything. + +#### Gtk4 Documentation + +Please refer to [Gtk API Reference](https://docs.gtk.org/gtk4/index.html) +and [Gnome Developer Documentation Website](https://developer.gnome.org/) for further information. + +These websites are newly opened lately (Aug/2021). +The old documentation is located at [Gtk Reference Manual](https://developer-old.gnome.org/gtk4/stable/) and [Gnome Developer Center](https://developer-old.gnome.org/). +The new website is in progress at present, so you might need to refer to the old version. + +If you want to know about GObject and the type system, please refer to [GObject tutorial](https://github.com/ToshioCP/Gobject-tutorial). +The GObject details are easy to understand and also necessary to know when writing Gtk4 programs. + +#### Contribution + +This tutorial is under development and unstable. +Even though the codes of the examples have been tested on Gtk4 version 4.0, bugs may still exist. +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](https://github.com/ToshioCP/Gtk4-tutorial/issues). +You can also post corrected files as a commit to [pull request](https://github.com/ToshioCP/Gtk4-tutorial/pulls). +When you make corrections, correct the source files, which are under the 'src' directory, +then run `rake` to create to create the output file. The GFM files under the 'gfm' directory are automatically updated. + +If you have a question, feel free to post it as an issue. +All questions are helpful and will make this tutorial get better. + +#### How to get a HTML or PDF version + +If you want to get a HTML or PDF version, you can make them with `rake`, which is a ruby version of make. +Type `rake html` for HTML. +Type `rake pdf` for PDF. +There is a documentation \("[How to build Gtk4 Tutorial](Readme_for_developers.html)"\) that describes how to make them. + +## Table of contents + +1. [Prerequisite and License](sec1.html) +1. [Installing Gtk4 into Linux distributions](sec2.html) +1. [GtkApplication and GtkApplicationWindow](sec3.html) +1. [Widgets (1)](sec4.html) +1. [Widgets (2)](sec5.html) +1. [String and memory management](sec6.html) +1. [Widgets (3)](sec7.html) +1. [Defining a Child object](sec8.html) +1. [The User Interface (UI) file and GtkBuilder](sec9.html) +1. [Build system](sec10.html) +1. [Initialization and destruction of instances](sec11.html) +1. [Signals](sec12.html) +1. [Functions in TfeTextView](sec13.html) +1. [Functions in GtkNotebook](sec14.html) +1. [tfeapplication.c](sec15.html) +1. [tfe5 source files](sec16.html) +1. [Menu and action](sec17.html) +1. [Stateful action](sec18.html) +1. [Ui file for menu and action entries](sec19.html) +1. [GtkMenuButton, accelerators, font, pango and gsettings](sec20.html) +1. [Template XML and composite widget](sec21.html) +1. [GtkDrawingArea and Cairo](sec22.html) +1. [Periodic Events](sec23.html) +1. [Combine GtkDrawingArea and TfeTextView](sec24.html) +1. [Tiny turtle graphics interpreter](sec25.html) +1. [GtkListView](sec26.html) +1. [GtkGridView and activate signal](sec27.html) +1. [GtkExpression](sec28.html) +1. [GtkColumnView](sec29.html) + +This website uses [Bootstrap](https://getbootstrap.jp/). \ No newline at end of file diff --git a/docs/template.html b/docs/template.html new file mode 100644 index 0000000..c5e2bf1 --- /dev/null +++ b/docs/template.html @@ -0,0 +1,109 @@ + + +
+ + + + +