diff options
-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) |