From: Adrian Iain Lam Date: Thu, 6 Jun 2019 18:01:58 +0000 (+0100) Subject: Full-width space; attempt to fix #1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=34211e2b9a51fa5571369862cbc6036df714d612;p=indicator-lunar-calendar.git Full-width space; attempt to fix #1 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. --- 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