Full-width space; attempt to fix #1
authorAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Thu, 6 Jun 2019 18:01:58 +0000 (19:01 +0100)
committerAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Thu, 6 Jun 2019 18:01:58 +0000 (19:01 +0100)
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

index 9f3ef01..869b43a 100755 (executable)
@@ -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