diff options
author | Alexandre 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) |
commit | 1e5558b7f5b33cafb3cca4026f5fdba7591dc6dc (patch) | |
tree | fa4a9db2f716fca6db87312f82eb5059130bf873 /toolbox.py | |
parent | 72ac6fd1dd57ec0b6a9e46c9b50e31930e3ddbf6 (diff) |
Release version 8.v8
Diffstat (limited to 'toolbox.py')
-rw-r--r-- | toolbox.py | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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') |