Fix Linux CI build on Ubuntu 22.04 GTK 4.6.

Provide G_APPLICATION_DEFAULT_FLAGS and css provider fallbacks for older GLib/GTK.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-16 12:30:44 +02:00
commit d76c636795
2 changed files with 10 additions and 0 deletions

View file

@ -394,7 +394,12 @@ void apply_theme(void) {
GTK_STYLE_PROVIDER_PRIORITY_USER);
}
#if GTK_CHECK_VERSION(4, 12, 0)
gtk_css_provider_load_from_string(theme_provider, css);
#else
/* GTK 4.6 (Ubuntu 22.04) — load_from_string arrived in 4.12. */
gtk_css_provider_load_from_data(theme_provider, css, -1);
#endif
g_free(css);
refresh_welcome_heading();