Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/widgets.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-09-02 15:45:58 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-09-02 15:45:58 (GMT)
commitea5c2e3917a7c546cce399a1acbb3b104205e0c3 (patch)
treea7e8e6ba7713f011cbf66b218c3b2ce3594ebd2c /widgets.py
parent59e30e2d8db68b283bdf8b4c7e6a73d9ad33e946 (diff)
Pyflakes fixes
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'widgets.py')
-rw-r--r--widgets.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets.py b/widgets.py
index e396e49..74add83 100644
--- a/widgets.py
+++ b/widgets.py
@@ -51,7 +51,7 @@ class BrushButton(_ColorButton):
self.set_image(self._preview)
if self._has_palette and self._has_invoker:
- self._invoker = WidgetInvoker(self)
+ self._invoker = ToolInvoker(self)
# FIXME: This is a hack.
self._invoker.has_rectangle_gap = lambda: False
self._invoker.palette = self._palette
@@ -405,7 +405,6 @@ class ButtonStrokeColor(Gtk.ToolItem):
title = GObject.property(type=str, getter=get_title, setter=set_title)
def do_draw(self, cr):
- child = self.get_child()
if self._palette and self._palette.is_up():
allocation = self.get_allocation()
# draw a black background, has been done by the engine before