diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-04-30 20:16:59 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2012-04-30 20:51:55 (GMT) |
commit | ac25ef327ad2ca416ec4824be72dd29a8287968b (patch) | |
tree | 5d6088d47c9974bf42df0202df30995b1f746bfb | |
parent | f935dcb0f2fed1fe69acd35f46e6cffa3758cfac (diff) |
Keep flood fill cursor after clicks SL #3491
When the user selects the Paint Bucket tool and clicks on the canvas, the bucket
cursor is kept until the user selects another tool.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Manuel Quinones <manuq@laptop.org>
-rw-r--r-- | Area.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -670,7 +670,9 @@ class Area(gtk.DrawingArea): fill(self.pixmap, self.gc, x, y, width, height, self.gc_line.foreground.pixel) widget.queue_draw() - self.window.set_cursor(None) + display = gtk.gdk.display_get_default() + cursor = gtk.gdk.cursor_new_from_name(display, 'paint-bucket') + self.window.set_cursor(cursor) def flood_fill(self, x, y, fill_color): width, height = self.window.get_size() @@ -707,7 +709,10 @@ class Area(gtk.DrawingArea): self.pixmap.draw_image(self.gc, gdk_image, 0, 0, 0, 0, width, height) self.queue_draw() - self.window.set_cursor(None) + + display = gtk.gdk.display_get_default() + cursor = gtk.gdk.cursor_new_from_name(display, 'paint-bucket') + self.window.set_cursor(cursor) def pick_color(self, x, y): gdk_image = self.pixmap.get_image(x, y, 1, 1) |