Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS12
-rw-r--r--toolbar.py4
2 files changed, 10 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 78c5767..e0d0194 100644
--- a/NEWS
+++ b/NEWS
@@ -1,13 +1,15 @@
+* Use a logger for the toolbar (uwog)
+
28
-* add total page count label
-* replace print's with proper logger calls (J.M. Maurer)
-* Implement a color button, which respects the cursors context (J.M. Maurer)
+* add total page count label (uwog)
+* replace print's with proper logger calls (uwog)
+* Implement a color button, which respects the cursors context (uwog)
27
-* Make sure the table icon shows up (J.M. Maurer)
-* Use ToolComboBoxes for ComboBoxes om the toolbar (J.M. Maurer)
+* Make sure the table icon shows up (uwog)
+* Use ToolComboBoxes for ComboBoxes om the toolbar (uwog)
25
diff --git a/toolbar.py b/toolbar.py
index 883ced6..bc49460 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -26,6 +26,8 @@ from sugar.graphics.toggletoolbutton import ToggleToolButton
from sugar.graphics.combobox import ComboBox
from sugar.graphics.toolcombobox import ToolComboBox
+logger = logging.getLogger('write-activity')
+
#ick
TOOLBAR_ACTIVITY = 0
TOOLBAR_EDIT = 1
@@ -171,7 +173,7 @@ class TextToolbar(gtk.Toolbar):
def _font_size_changed_cb(self, combobox):
if self._font_size_combo.get_active() != -1:
- logger.debug('Setting font size: %d',self._font_sizes[self._font_size_combo.get_active()])
+ logger.debug('Setting font size: %d', int(self._font_sizes[self._font_size_combo.get_active()]))
self._abiword_canvas.set_font_size(self._font_sizes[self._font_size_combo.get_active()])
def _alignment_changed_cb(self, combobox):