Skip to content

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

Open
Arecsu wants to merge 1 commit into
darktable-org:masterfrom
Arecsu:gtk4/no-widget-set-app-paintable
Open

gtk4-prep: replace gtk_widget_set_app_paintable()-> dt_transparent_background CSS class#21546
Arecsu wants to merge 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

…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.
@ralfbrown ralfbrown added the gtk4 label Jul 14, 2026
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.

2 participants