Skip to content

Commit 17955c9

Browse files
committed
mate-xapp-status-applet: Fix application theme provider due to
PyGObject bug. ref: linuxmint/cinnamon-screensaver@37ab8ed18f3559 Fixes #185
1 parent 3c85263 commit 17955c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

status-applets/mate/mate-xapp-status-applet.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,11 @@ def __init__(self, applet, iid):
328328

329329
button_css = Gtk.CssProvider()
330330

331-
if button_css.load_from_data(statusicon_css_string.encode()):
331+
try:
332+
button_css.load_from_data(statusicon_css_string.encode())
332333
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), button_css, 600)
334+
except Exception as e:
335+
print("Could not load style provider for icon box:", str(e))
333336

334337
self.applet.connect("realize", self.on_applet_realized)
335338
self.applet.connect("destroy", self.on_applet_destroy)

0 commit comments

Comments
 (0)