GTK 4 porting #1
Draft
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.
On Works
Porting.md
Progress Tracking
Completed
In Progress
TODO
Breaking Changes
GdkEvent Opaque Structure: In GTK 4, GdkEvent structs are now opaque and immutable. Direct field access like
event->type
andevent->grab_broken.keyboard
is no longer allowed.gdk_event_get_event_type()
GDK_GRAB_BROKEN Event Removed: The GDK_GRAB_BROKEN event type and related grab broken handling has been removed/changed in GTK 4.
GdkPoint Removed: The GdkPoint structure was removed in GTK 4.
Event Coordinate Access: Direct access to event coordinates changed in GTK 4.
event->touch.x
,event->touch.y
gdk_event_get_position(event, &x, &y)
Widget "event" Signal: The generic widget "event" signal is deprecated in favor of specific event controllers.
Build Status