Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/widgets.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-09-08 13:40:39 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-09-08 13:40:39 (GMT)
commit43ec69520ee5a111594f9ccb5060586defa80f5c (patch)
tree6d977a1b8d4956c8b6bb6b9e40293821245e69a3 /widgets.py
parent39b7fda9589d08b56222d475533478568381d633 (diff)
Removed redundant ListsPalette code from widgets.py.
Diffstat (limited to 'widgets.py')
-rw-r--r--widgets.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/widgets.py b/widgets.py
index 0317ad0..67d2e46 100644
--- a/widgets.py
+++ b/widgets.py
@@ -227,52 +227,6 @@ class AbiButton(RadioToolButton):
finally:
self.handler_unblock(self._toggled_handler)
-class ListsPalette(RadioPalette):
- def __init__(self, abi):
- RadioPalette.__init__(self)
-
- def append(icon_name, tooltip, do_abi_cb, on_abi_cb):
- button = AbiButton(abi, 'style-name', do_abi_cb, on_abi_cb)
- button.show()
- button.props.icon_name = icon_name
- button.props.group = group
- RadioPalette.append(self, button, tooltip)
- return button
-
- group = None
-
- group = append('list-none', _('Normal'),
- lambda:
- abi.set_style('Normal'),
- lambda abi, style:
- style not in ['Bullet List',
- 'Dashed List',
- 'Numbered List',
- 'Lower Case List',
- 'Upper Case List'])
-
- append('list-bullet', _('Bullet List'),
- lambda: abi.set_style('Bullet List'),
- lambda abi, style: style == 'Bullet List')
-
- append('list-dashed', _('Dashed List'),
- lambda: abi.set_style('Dashed List'),
- lambda abi, style: style == 'Dashed List')
-
- append('list-numbered', _('Numbered List'),
- lambda: abi.set_style('Numbered List'),
- lambda abi, style: style == 'Numbered List')
-
- append('list-lower-case', _('Lower Case List'),
- lambda: abi.set_style('Lower Case List'),
- lambda abi, style: style == 'Lower Case List')
-
- append('list-upper-case', _('Upper Case List'),
- lambda: abi.set_style('Upper Case List'),
- lambda abi, style: style == 'Upper Case List')
-
- self.show_all()
-
class ExportButton(ToolButton):
_EXPORT_FORMATS = [{'mime_type' : 'application/rtf',
'title' : _('Rich Text (RTF)'),