From 2bc9f743b38e2be2f68cdbc041a854d842c75d9a Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 18 Oct 2012 16:05:31 +0400 Subject: [PATCH] Fix ugly statusicon in MATE desktop.Set statusicon_size to 16 if MATE session detected. --- src/statusicon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/statusicon.py b/src/statusicon.py index 7db0eb28a..6548843d7 100644 --- a/src/statusicon.py +++ b/src/statusicon.py @@ -118,13 +118,16 @@ class StatusIcon: def on_status_icon_size_changed(self, statusicon, size): if size > 31: self.statusicon_size = '32' - elif size > 23: + elif size > 23: self.statusicon_size = '24' else: self.statusicon_size = '16' if os.environ.get('KDE_FULL_SESSION') == 'true': # detect KDE session. see #5476 self.statusicon_size = '32' + if os.environ.get('MATE_DESKTOP_SESSION_ID'): + # detect MATE session. + self.statusicon_size = '16' self.set_img() def set_img(self):