GTK4: use a GtkDrawingArea
Open
gtk4
hidpi
- Dominant language
- Python
- Stars
- 869
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
https://blog.gtk.org/2020/04/24/custom-widgets-in-gtk-4-drawing/
>GtkDrawingArea is still a valid option
not GtkLayout :/
>you call gtk_drawing_area_set_draw_func() to provide your drawing function instead of connecting a signal handler to the the ::draw signal
fine
Redefine how to scroll, maybe???
Contributor guide
Research direction
Start with the linked GTK custom-widgets article, then inspect where the application currently uses GtkLayout, draws content, and handles scrolling. Determine how the drawing function and scrolling should work with GtkDrawingArea; done means the GTK4 drawing approach is used and scrolling still behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100