Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodriguez <ignacio@sugarlabs.org>2013-12-12 23:33:09 (GMT)
committer Ignacio Rodriguez <ignacio@sugarlabs.org>2013-12-12 23:33:09 (GMT)
commitf0cff86eb23efedcbd1bec41e9c4fc6e7811de28 (patch)
tree67360e8215aaa7eea5bbd855bc63164aeb1bac31
parentd96d19085570856ca1e2549ce77f08afcdf04f7b (diff)
Fixes in idle_addHEADmaster
-rw-r--r--Area.py2
-rw-r--r--toolbox.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/Area.py b/Area.py
index f4c05b6..6de21fb 100644
--- a/Area.py
+++ b/Area.py
@@ -1237,9 +1237,9 @@ class Area(Gtk.DrawingArea):
self.queue_draw()
self.enable_undo()
- GObject.source_remove(source_id)
window.set_cursor(old_cursor)
+ window.set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH))
GObject.idle_add(internal_invert, self, old_cursor, window)
def mirror(self, widget, horizontal=True):
diff --git a/toolbox.py b/toolbox.py
index acd770b..dfe6d0e 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -816,8 +816,4 @@ class ImageToolbar(Gtk.Toolbar):
def invert_colors(self, widget):
window = self.get_window()
old_cursor = window.get_cursor()
- GObject.idle_add(self.set_watch_cursor, window)
self._activity.area.invert_colors(widget, old_cursor, window)
-
- def set_watch_cursor(self, window):
- window.set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH))