load_from_data does not support bytes anymore

main
mirkobrombin 2 years ago
parent d9bec37729
commit f031a99286

@ -113,7 +113,7 @@ class FirstSetupApplication(Adw.Application):
} }
""" """
provider = Gtk.CssProvider() provider = Gtk.CssProvider()
provider.load_from_data(css.encode()) provider.load_from_data(css, -1)
Gtk.StyleContext.add_provider_for_display( Gtk.StyleContext.add_provider_for_display(
display=Gdk.Display.get_default(), display=Gdk.Display.get_default(),
provider=provider, provider=provider,

Loading…
Cancel
Save