[gedit-plugins/gnome-3-10] git: use an idle to update the status of the filebrowser files on focus-in



commit e0eefcf2e76d7dfc9804d28d57347b6c1e667f96
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Dec 24 12:57:19 2013 +0100

    git: use an idle to update the status of the filebrowser files on focus-in

 plugins/git/git/windowactivatable.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/git/git/windowactivatable.py b/plugins/git/git/windowactivatable.py
index 7bba94b..3038e10 100644
--- a/plugins/git/git/windowactivatable.py
+++ b/plugins/git/git/windowactivatable.py
@@ -130,7 +130,7 @@ class GitWindowActivatable(GObject.Object, Gedit.WindowActivatable):
             view_activatable.update()
 
         for uri in self.files:
-            self.update_location(Gio.File.new_for_uri(uri))
+            GLib.idle_add(self.update_location, Gio.File.new_for_uri(uri))
 
     def root_changed(self, bus, msg, data=None):
         self.clear_monitors()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]