diff options
author | Marc Maurer <uwog@uwog.net> | 2007-06-04 22:52:04 (GMT) |
---|---|---|
committer | Marc Maurer <uwog@uwog.net> | 2007-06-04 22:52:04 (GMT) |
commit | 88fcec3084c940785ed6328244da7c06246e0edd (patch) | |
tree | 80eb018514737b7ce6b008a286d5e912e1d74832 /AbiWordActivity.py | |
parent | 072b614eee4d4e7075fbf6b770d87ec384d479ed (diff) |
Select the Text, Image and Table toolbars depending on the context of the cursor
Diffstat (limited to 'AbiWordActivity.py')
-rw-r--r-- | AbiWordActivity.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/AbiWordActivity.py b/AbiWordActivity.py index 2642bf7..7bfc5df 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -27,9 +27,7 @@ import telepathy import telepathy.client from sugar.activity.activity import Activity, ActivityToolbox, EditToolbar - from sugar.presence import presenceservice -#from buddiespanel import BuddiesPanel from abiword import Canvas from toolbar import TextToolbar, ImageToolbar, TableToolbar, ViewToolbar @@ -67,15 +65,15 @@ class AbiWordActivity (Activity): toolbox.add_toolbar(_('Edit'), self._edit_toolbar) self._edit_toolbar.show() - text_toolbar = TextToolbar(self.abiword_canvas) + text_toolbar = TextToolbar(toolbox, self.abiword_canvas) toolbox.add_toolbar(_('Text'), text_toolbar) text_toolbar.show() - image_toolbar = ImageToolbar(self.abiword_canvas) + image_toolbar = ImageToolbar(toolbox, self.abiword_canvas) toolbox.add_toolbar(_('Image'), image_toolbar) image_toolbar.show() - table_toolbar = TableToolbar(self.abiword_canvas) + table_toolbar = TableToolbar(toolbox, self.abiword_canvas) toolbox.add_toolbar(_('Table'), table_toolbar) table_toolbar.show() |