diff options
Diffstat (limited to 'toolbox.py')
-rw-r--r-- | toolbox.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -814,4 +814,12 @@ class ImageToolbar(Gtk.Toolbar): self.properties['name'] = self._EFFECT_RAINBOW_NAME def invert_colors(self, widget): - self._activity.area.invert_colors(widget) + window = self.get_window() + old_cursor = window.get_cursor() + source_id = GObject.idle_add(self.set_watch_cursor, window) + self._activity.area.invert_colors(widget, old_cursor, + source_id, window) + + def set_watch_cursor(self, window): + window.set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH)) + return True |