Skip to content

Commit

Permalink
load_from_data does not support bytes anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Feb 27, 2023
1 parent d9bec37 commit f031a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vanilla_first_setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def do_activate(self):
}
"""
provider = Gtk.CssProvider()
provider.load_from_data(css.encode())
provider.load_from_data(css, -1)
Gtk.StyleContext.add_provider_for_display(
display=Gdk.Display.get_default(),
provider=provider,
Expand Down

0 comments on commit f031a99

Please sign in to comment.