Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbox.py
diff options
context:
space:
mode:
authorManuel QuiƱones <manuel.por.aca@gmail.com>2011-05-03 03:38:15 (GMT)
committer Manuel QuiƱones <manuel.por.aca@gmail.com>2011-05-03 03:38:15 (GMT)
commit36ad725f12467ab7b9dd56827b37d1f267f7ef6f (patch)
treeb25b98c6cad293ef6d18daaa619c2d1ba78b824d /toolbox.py
parent338e95d0545044d38cc98a470d3e52bf55690c3b (diff)
Stamp refactor and brush square shape fixHEADmaster
Diffstat (limited to 'toolbox.py')
-rw-r--r--toolbox.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/toolbox.py b/toolbox.py
index 9ba90ce..73930e3 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -311,12 +311,11 @@ class ToolsToolbarBuilder():
@param tool_name --The name of the selected tool
"""
if tool_name == 'stamp':
- pixbuf = self._activity.area.setupStamp()
- # Put stamp in menu widget:
- self._stroke_color.color_button._pixbuf_stamp = pixbuf
- self._stroke_color.set_stamping(True)
+ resized_stamp = self._activity.area.setupStamp()
+ self._stroke_color.color_button.set_resized_stamp(resized_stamp)
else:
- self._stroke_color.set_stamping(False)
+ self._stroke_color.color_button.stop_stamping()
+ self._stroke_color.update_stamping()
self.properties['name'] = tool_name
self._activity.area.set_tool(self.properties)