From d20721442caa22d89f83b6c43d35d3aafae3f4bc Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 29 May 2012 14:27:30 +0000 Subject: Target rectangle in Stamp at first usage SL #3602 Show the target rectangle inmediatly when the Stamp tool is selected and don't remove the sensitive of the Stamp tool button if it's being used. Signed-off-by: Manuel Kaufmann --- (limited to 'toolbox.py') diff --git a/toolbox.py b/toolbox.py index f781b4a..dcdfeb0 100644 --- a/toolbox.py +++ b/toolbox.py @@ -349,8 +349,11 @@ class ToolsToolbarBuilder(): self._verify_sensitive_buttons() def _verify_sensitive_buttons(self): - is_selected = self._activity.area.is_selected() - self._tool_stamp.set_sensitive(is_selected) + # Check if there is an area selected or if the "stamp" tool is + # being used + sensitive = self._activity.area.is_selected() or \ + self.tool['name'] == 'stamp' + self._tool_stamp.set_sensitive(sensitive) class ButtonFillColor(ColorToolButton): -- cgit v0.9.1