Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-11-25 19:33:41 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-12-09 12:07:46 (GMT)
commitc299c4a2255fd7548288a9bfa6604da768c6b276 (patch)
tree68b24fc906d8a9c3092b73d02003edb72cc51045
parent3bfeb6a8c66fc5864f54c725c0074bb5ce060466 (diff)
OLPC #3913 - Add Separators to Style combo
-rw-r--r--toolbar.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/toolbar.py b/toolbar.py
index 76f6074..dfa3d4d 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -659,19 +659,25 @@ class FormatToolbar(gtk.Toolbar):
['Heading 2',_('Heading 2')],
['Heading 3',_('Heading 3')],
['Heading 4',_('Heading 4')],
+ [None, None],
['Bullet List',_('Bullet List')],
['Dashed List',_('Dashed List')],
['Numbered List',_('Numbered List')],
['Lower Case List',_('Lower Case List')],
['Upper Case List',_('Upper Case List')],
+ [None, None],
['Block Text',_('Block Text')],
['Normal',_('Normal')],
['Plain Text',_('Plain Text')]]
self._style_changed_id = self._style_combo.connect('changed', self._style_changed_cb)
for i, s in enumerate(self._styles):
- self._style_combo.append_item(i, s[1], None)
- if s[0] == 'Normal':
- self._style_combo.set_active(i)
+ if s[1] != None:
+ self._style_combo.append_item(i, s[1], None)
+ if s[0] == 'Normal':
+ self._style_combo.set_active(i)
+ else:
+ self._style_combo.append_separator()
+
tool_item = ToolComboBox(self._style_combo)
self.insert(tool_item, -1);
tool_item.show()