diff options
author | Marc Maurer <uwog@uwog.net> | 2007-09-02 19:16:05 (GMT) |
---|---|---|
committer | Marc Maurer <uwog@uwog.net> | 2007-09-02 19:16:05 (GMT) |
commit | c6a2ece03409e50233d868f5e7b34238d8fec673 (patch) | |
tree | 27a1b92d09ebd7197de54aa814acd8fddec4b3d6 | |
parent | 6ff4e6cb774f57be452c0c1ee40ce85737816dc8 (diff) |
Add a format-text-size icon before the text size selection dropdown
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | toolbar.py | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,4 @@ +* Add a format-text-size icon before the text size selection dropdown (uwog) * Don't forget to actually show the separators in the Text toolbar (uwog) * Add a Style label before the Style combobox (uwog) * Hook up the abiword canvas font size signal to the Write toolbar (uwog) @@ -21,6 +21,7 @@ import logging import abiword import gtk +from sugar.graphics.icon import Icon from sugar.graphics.toolbutton import ToolButton from sugar.graphics.toggletoolbutton import ToggleToolButton from sugar.graphics.combobox import ComboBox @@ -81,6 +82,12 @@ class TextToolbar(gtk.Toolbar): separator.show() self.insert(separator, -1) + self._font_size_icon = Icon(icon_name="format-text-size") + tool_item = gtk.ToolItem() + tool_item.add(self._font_size_icon) + self.insert(tool_item, -1) + tool_item.show_all() + self._font_size_combo = ComboBox() self._font_sizes = ['8', '9', '10', '11', '12', '14', '16', '20', '22', '24', '26', '28', '36', '48', '72'] self._font_size_changed_id = self._font_size_combo.connect('changed', self._font_size_changed_cb) |