From 34211e2b9a51fa5571369862cbc6036df714d612 Mon Sep 17 00:00:00 2001 From: Adrian Iain Lam Date: Thu, 6 Jun 2019 19:01:58 +0100 Subject: [PATCH] Full-width space; attempt to fix #1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Replaced previous half-width space (ASCII 0x20) with full-width space (' ') since it looks better (and was used in the previous JS version). The script seems to still be affected by #1 but only occassionally. No idea why. Added another show_all(), we'll see what happens. --- indicator-lunar-calendar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indicator-lunar-calendar.py b/indicator-lunar-calendar.py index 9f3ef01..869b43a 100755 --- a/indicator-lunar-calendar.py +++ b/indicator-lunar-calendar.py @@ -81,8 +81,8 @@ class IndicatorLunarCalendar: lunar['lunarMonthName'] + lunar['lunarDayName'] ) if lunar['term']: - compact_date += ' ' + lunar['term'] - long_date += ' ' + lunar['term'] + compact_date += ' ' + lunar['term'] + long_date += ' ' + lunar['term'] long_date += '\n' + lunar['hour'] + '時' self.indicator.set_icon( @@ -90,6 +90,7 @@ class IndicatorLunarCalendar: ) self.indicator.set_label(compact_date, '') self.item.set_label(long_date) + self.menu.show_all() def do_nothing(self, arg): pass -- 2.7.4