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



commit bc108642dbd5ad0bf7efd2ab13c95eb49ca17ad6
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]