Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbar.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-09-02 19:16:05 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-09-02 19:16:05 (GMT)
commitc6a2ece03409e50233d868f5e7b34238d8fec673 (patch)
tree27a1b92d09ebd7197de54aa814acd8fddec4b3d6 /toolbar.py
parent6ff4e6cb774f57be452c0c1ee40ce85737816dc8 (diff)
Add a format-text-size icon before the text size selection dropdown
Diffstat (limited to 'toolbar.py')
-rw-r--r--toolbar.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolbar.py b/toolbar.py
index c6f8a44..2831663 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -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)