window: Use gtk_css_provider_load_from_string

And bump the GTK4 dependency version
This commit is contained in:
Georges Basile Stavracas Neto
2023-08-02 11:03:58 -03:00
parent a7f0af6e8a
commit eb0c123b3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ recalculate_calendar_colors_css (GcalWindow *self)
}
new_css_data = g_strjoinv ("\n", new_css_snippets);
gtk_css_provider_load_from_data (self->colors_provider, new_css_data, -1);
gtk_css_provider_load_from_string (self->colors_provider, new_css_data);
if (error)
g_warning ("Error creating custom stylesheet. %s", error->message);