Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()