[alacarte] MainWindow: Remove timer shenanigans



commit bd188fd969c74009504423bc0aeb45d8320eff60
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue May 1 15:36:36 2012 -0400

    MainWindow: Remove timer shenanigans

 Alacarte/MainWindow.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index e6d6112..0c54d12 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -78,10 +78,7 @@ class MainWindow:
 
     def menuChanged(self, *a):
         print >> sys.stderr, "changed!\n"
-        if self.timer:
-            GObject.source_remove(self.timer)
-            self.timer = None
-        self.timer = GObject.timeout_add(3, self.loadUpdates)
+        self.loadUpdates()
 
     def loadUpdates(self):
         print >> sys.stderr, "%d\n" % self.editor.applications.tree.disconnect_by_func(self.menuChanged)



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