Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbar.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-07-12 20:56:38 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-07-12 20:56:38 (GMT)
commit492d8db5a66f1e074c02d14c83fc8532e2cb22be (patch)
tree7e7b4ec8af230d4ca96c20b9536eab350c5ae37b /toolbar.py
parente194c8da9459aebf45f83a64ef5304efc61993f7 (diff)
Add a logger to the toolbar
Diffstat (limited to 'toolbar.py')
-rw-r--r--toolbar.py4
1 files changed, 3 insertions, 1 deletions
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):