GTK4: gtk_css_provider_load_from_path fix

This commit is contained in:
NunoSempere 2024-07-20 18:36:29 -04:00
parent 6c6c84ec3b
commit 80e7e576c2

View File

@ -391,7 +391,7 @@ int main(int argc, char** argv)
#endif
g_object_set(gtk_settings_get_default(), GTK_SETTINGS_CONFIG_H, NULL); // https://docs.gtk.org/gobject/method.Object.set.html
GtkCssProvider* css = gtk_css_provider_new();
gtk_css_provider_load_from_path(css, "/opt/rosenrot/style.css", NULL);
gtk_css_provider_load_from_path(css, "/opt/rosenrot/style.css");
gtk_style_context_add_provider_for_display(gdk_display_get_default(), GTK_STYLE_PROVIDER(css), 800); /* might change with GTK4/webkitgtk6.0 */
/* Initialize GTK objects. These are declared as static globals at the top of this file */