meld r1277 - trunk



Author: vincele
Date: Fri Mar 20 00:27:26 2009
New Revision: 1277
URL: http://svn.gnome.org/viewvc/meld?rev=1277&view=rev

Log:
Express melddoc stop() as schedulerbase calls instead of
using actual scheduler implementation internals knowledge


Modified:
   trunk/melddoc.py

Modified: trunk/melddoc.py
==============================================================================
--- trunk/melddoc.py	(original)
+++ trunk/melddoc.py	Fri Mar 20 00:27:26 2009
@@ -52,8 +52,8 @@
         pass
 
     def stop(self):
-        if len(self.scheduler.tasks):
-            del self.scheduler.tasks[0]
+        if self.scheduler.tasks_pending():
+            self.scheduler.remove_task(self.scheduler.get_current_task())
 
     def _open_files(self, selected):
         files = [f for f in selected if os.path.isfile(f)]



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