Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'toolbox.py')
-rw-r--r--toolbox.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/toolbox.py b/toolbox.py
index b4e624e..0646892 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -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