Skip to content

gtk4-prep: replace gtk_widget_set_app_paintable()-> dt_transparent_background CSS class - #21546

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
Arecsu:gtk4/no-widget-set-app-paintable
Jul 25, 2026
Merged

gtk4-prep: replace gtk_widget_set_app_paintable()-> dt_transparent_background CSS class#21546
TurboGit merged 1 commit into
darktable-org:masterfrom
Arecsu:gtk4/no-widget-set-app-paintable

Conversation

@Arecsu

@Arecsu Arecsu commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

gtk_widget_set_app_paintable() is removed in GTK4 with no direct replacement. The migration guide recommends CSS background: transparent for widgets that need transparent backgrounds.

All 11 call sites across 9 files are custom-drawn widgets that handle their own painting via draw signal handlers. Replace each with the existing dt_transparent_background CSS class (background-color: transparent; border: none).

Related: "Stop using gtk_widget_set_app_paintable" #15920 #20433

Stop using gtk_widget_set_app_paintable

This is gone in GTK4 with no direct replacement. But for some usecases there are alternatives. If you want to make the background transparent, you can set the background color to, for example, rgba(255, 255, 255, 0) using CSS instead.

https://docs.gtk.org/gtk4/migrating-3to4.html

@ralfbrown ralfbrown added the gtk4 label Jul 14, 2026
@TurboGit TurboGit added this to the 5.8 milestone Jul 16, 2026
…ent_background` CSS class

`gtk_widget_set_app_paintable()` is removed in GTK4 with no direct
replacement. The migration guide recommends CSS `background: transparent`
for widgets that need transparent backgrounds.

All 11 call sites across 9 files are custom-drawn widgets that handle
their own painting via draw signal handlers. Replace each with the
existing `dt_transparent_background` CSS class (`background-color:
transparent; border: none`).

Corresponds to the "Stop using gtk_widget_set_app_paintable" section
of the GTK4 migration guide.
@Arecsu
Arecsu force-pushed the gtk4/no-widget-set-app-paintable branch from 2e10099 to ffc73ee Compare July 24, 2026 21:46

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit
TurboGit merged commit 73b039c into darktable-org:master Jul 25, 2026
5 checks passed
@Arecsu
Arecsu deleted the gtk4/no-widget-set-app-paintable branch July 25, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants