ToshioCP / Gtk4-tutorial

GTK 4 tutorial for beginners
https://toshiocp.github.io/Gtk4-tutorial/
572 stars 50 forks source link

Created a new tutorial for creating an animated GtkDrawingArea #22

Closed PaulSchulz closed 2 years ago

PaulSchulz commented 2 years ago

Comments welcome - added as Section 29, ('sec29.src.md') but could probably be slotted in somewhere else.

This was the result of some other experimentation that I was doing, and could probably do with some code review. I was looking for a simple example of an animated image.

I don't know what additional optimizations are available for GTK4 code.. like only erasing and redrawing the clock hands.. (would that be a thing?)

Depending on where it fits in the other sections, it could be changed to use a Makefile.

Regards, Paul

ToshioCP commented 2 years ago

Hi, Paul

Thank you for your pull request and your hard work. I want to insert your section between sec22 and sec23.

So, do the following steps.

  1. Rename 'sec29.src.md' to 'sec22.5.src.md'
  2. Change 'abstract.src.md' as follows.
  3. Run rake.

from:

- Section 3 to 21 describes the basics, with the example of a simple editor `tfe` (Text File Editor).
- Section 22 to 24 describes GtkDrawingArea.
- Section 25 to 28 describes the list model and the list view (GtkListView, GtkGridView and GtkColumnView).

to:

- 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).

If you are OK, I'd like you to put the following or something like that at the top of your section.

This section is written by Paul Schulz.

Do things above and give me the pull request again.

Thank you.

Toshio

ToshioCP commented 2 years ago

Maybe 'tweek' is a misspel of 'tweak'?

ToshioCP commented 2 years ago

Dear Paul,

Thank you for your pull request. Your request has merged. This is a great contribution to the tutorial.

Toshio