From ac25ef327ad2ca416ec4824be72dd29a8287968b Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 30 Apr 2012 20:16:59 +0000 Subject: 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 Acked-by: Manuel Quinones --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index aae3d78..50c0744 100644 --- a/Area.py +++ b/Area.py @@ -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) -- cgit v0.9.1