Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-07-02 05:36:26 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-07-02 05:36:26 (GMT)
commit110460501d37275af983fc045f9be3b860370fd3 (patch)
treee1de4c9209a1c85814fa9d12c92d4f1c02ab75ac
parent0dd0cc2b2dc001b73a0118b22cd31a48c65dfd4f (diff)
more proof that you shouldn't code will jet-lagged
-rw-r--r--sensor_toolbar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sensor_toolbar.py b/sensor_toolbar.py
index b3b4b79..711146e 100644
--- a/sensor_toolbar.py
+++ b/sensor_toolbar.py
@@ -203,8 +203,8 @@ of XO)") + ' '
return tenth_seconds / 10.
def _log_to_string(self, tenth_seconds):
- if tenth_seconds in LOG_VALUE_LABELS:
- return LOG_VALUE_LABELS[tenth_seconds]
+ if tenth_seconds in LOG_TIMER_LABELS:
+ return LOG_TIMER_LABELS[tenth_seconds]
else:
return _('1 second')
@@ -214,7 +214,7 @@ of XO)") + ' '
for tenth_seconds in LOG_TIMER_VALUES:
text = self._log_to_string(tenth_seconds)
menu_item = MenuItem(icon_name='timer-%d' % (tenth_seconds),
- text_label=_log_to_string(tenth_seconds))
+ text_label=self._log_to_string(tenth_seconds))
menu_item.connect('activate', self._log_selected_cb, tenth_seconds)
self._log_palette.menu.append(menu_item)
menu_item.show()