Skip to content

Commit

Permalink
mate-xapp-status-applet: Fix application theme provider due to
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Aug 10, 2024
1 parent 3c85263 commit 17955c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion status-applets/mate/mate-xapp-status-applet.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,11 @@ def __init__(self, applet, iid):

button_css = Gtk.CssProvider()

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

self.applet.connect("realize", self.on_applet_realized)
self.applet.connect("destroy", self.on_applet_destroy)
Expand Down

0 comments on commit 17955c9

Please sign in to comment.