Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbox.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-09-14 21:41:10 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-09-14 21:41:10 (GMT)
commit1e5558b7f5b33cafb3cca4026f5fdba7591dc6dc (patch)
treefa4a9db2f716fca6db87312f82eb5059130bf873 /toolbox.py
parent72ac6fd1dd57ec0b6a9e46c9b50e31930e3ddbf6 (diff)
Release version 8.v8
Diffstat (limited to 'toolbox.py')
-rw-r--r--toolbox.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/toolbox.py b/toolbox.py
index dad84ad..e4bbef8 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -439,14 +439,23 @@ class ToolsToolbar(gtk.Toolbar):
tool['name'] is self._TOOL_ERASER['name']:
# Changing to gtk.RadioButton
- # TODO: insert images to represent shapes
item1 = gtk.RadioButton(None, _('Circle'))
item1.show()
item1.set_active(True)
+ image1 = gtk.Image()
+ image1.set_from_file('./icons/tool-shape-ellipse.svg')
+ image1.show()
+ item1.set_image(image1)
+
item2 = gtk.RadioButton(item1, _('Square'))
item2.show()
+ image2 = gtk.Image()
+ image2.set_from_file('./icons/tool-shape-rectangle.svg')
+ image2.show()
+ item2.set_image(image2)
+
item1.connect('toggled', self._on_toggled, tool, 'circle')
item2.connect('toggled', self._on_toggled, tool, 'square')
@@ -1417,14 +1426,24 @@ class EffectsToolbar(gtk.Toolbar):
size_spinbutton.connect('value-changed', self._on_size_value_changed, tool)
# Line Shape
- # TODO: insert images to represent shapes
+
item1 = gtk.RadioButton(None, _('Circle'))
item1.show()
item1.set_active(True)
+ image1 = gtk.Image()
+ image1.set_from_file('./icons/tool-shape-ellipse.svg')
+ image1.show()
+ item1.set_image(image1)
+
item2 = gtk.RadioButton(item1, _('Square'))
item2.show()
+ image2 = gtk.Image()
+ image2.set_from_file('./icons/tool-shape-rectangle.svg')
+ image2.show()
+ item2.set_image(image2)
+
item1.connect('toggled', self._on_radio_toggled, tool, 'circle')
item2.connect('toggled', self._on_radio_toggled, tool, 'square')