[gnome-tweaks] CssProvider.load_from_data takes bytes, not string



commit a733716d6cce7363db10dbeee12821c98ce85f78
Author: Alexa Ognjanovic <alexa ognjanovic gmail com>
Date:   Fri Apr 3 18:20:31 2020 +0000

    CssProvider.load_from_data takes bytes, not string

 gtweak/tweaks/tweak_group_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtweak/tweaks/tweak_group_test.py b/gtweak/tweaks/tweak_group_test.py
index f056111..36a44bb 100644
--- a/gtweak/tweaks/tweak_group_test.py
+++ b/gtweak/tweaks/tweak_group_test.py
@@ -42,7 +42,7 @@ class _TestButtonTweak(Gtk.Box, Tweak):
             self.notify_logout()
 
 css_provider = Gtk.CssProvider()
-css_provider.load_from_data("""
+css_provider.load_from_data(b"""
 .list-row.tweak#tweak-test-foo {
         background-color: red;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]