diff options
author | Marc Maurer <uwog@uwog.net> | 2007-07-12 20:56:38 (GMT) |
---|---|---|
committer | Marc Maurer <uwog@uwog.net> | 2007-07-12 20:56:38 (GMT) |
commit | 492d8db5a66f1e074c02d14c83fc8532e2cb22be (patch) | |
tree | 7e7b4ec8af230d4ca96c20b9536eab350c5ae37b | |
parent | e194c8da9459aebf45f83a64ef5304efc61993f7 (diff) |
Add a logger to the toolbar
-rw-r--r-- | NEWS | 12 | ||||
-rw-r--r-- | toolbar.py | 4 |
2 files changed, 10 insertions, 6 deletions
@@ -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 @@ -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): |