Repository navigation
GUI: add modules 2-4 (layout, signals and state, dynamic list) - #32
Merged
Merged
Conversation
The GTK course had one module. Three more cover what a simple GTK4 window needs: GtkBox layout and the common widgets, signals with a state struct passed as user_data, and a todo list that adds and removes widgets at run time. Every example is a file compiled with -std=c11 -Wall -Wextra on gcc 14.2.1 and GTK 4.22.5, then driven by a test program against the real window. The few pixel measurements quoted in the lessons were read back from the real widgets. Undefined behaviour (a callback reading a dead stack struct, reading a sibling after gtk_box_remove) is explained, not run. Also: PT-PT titles and summaries for the new modules, the new constructs in check-teaching-order.py (169 exercises pass), the Makefile and README. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The GTK course had one module. This adds three, enough to build a simple GTK4 window:
Verification:
-std=c11 -Wall -Wextra(gcc 14.2.1, GTK 4.22.5) with no warnings, then driven by a test program against the real window (set text, tick check buttons, emit clicked/activate, assert on labels and row counts).python3 tools/check-teaching-order.py: 169 exercises pass.Undefined behaviour is explained, not run.
🤖 Generated with Claude Code