[Python-apps-commits] r5674 - in packages/gtg/trunk/debian (3 files)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Thu Jun 24 18:21:43 UTC 2010


    Date: Thursday, June 24, 2010 @ 18:21:28
  Author: dktrkranz
Revision: 5674

* debian/patches/reaper_hang.patch:
  - Do not hang on quit due to "completed tasks remover" plugin

Added:
  packages/gtg/trunk/debian/patches/reaper_hang.patch
Modified:
  packages/gtg/trunk/debian/changelog
  packages/gtg/trunk/debian/patches/series

Modified: packages/gtg/trunk/debian/changelog
===================================================================
--- packages/gtg/trunk/debian/changelog	2010-06-24 18:12:31 UTC (rev 5673)
+++ packages/gtg/trunk/debian/changelog	2010-06-24 18:21:28 UTC (rev 5674)
@@ -3,8 +3,10 @@
   * debian/patches/test_executable.patch:
     - Do not launch program to see if it is available, check if it is
       installed and has executable bit enabled instead.
+  * debian/patches/reaper_hang.patch:
+    - Do not hang on quit due to "completed tasks remover" plugin.
 
- -- Luca Falavigna <dktrkranz at debian.org>  Thu, 24 Jun 2010 20:11:12 +0200
+ -- Luca Falavigna <dktrkranz at debian.org>  Thu, 24 Jun 2010 20:20:17 +0200
 
 gtg (0.2.4-1) unstable; urgency=low
 

Added: packages/gtg/trunk/debian/patches/reaper_hang.patch
===================================================================
--- packages/gtg/trunk/debian/patches/reaper_hang.patch	                        (rev 0)
+++ packages/gtg/trunk/debian/patches/reaper_hang.patch	2010-06-24 18:21:28 UTC (rev 5674)
@@ -0,0 +1,36 @@
+Do not hang on quit due to "completed tasks remover" plugin
+
+Index: gtg-0.2.4/GTG/core/plugins/engine.py
+===================================================================
+--- gtg-0.2.4.orig/GTG/core/plugins/engine.py	2010-06-24 20:18:50.707020895 +0200
++++ gtg-0.2.4/GTG/core/plugins/engine.py	2010-06-24 20:18:48.327022423 +0200
+@@ -220,6 +220,11 @@
+                         if tv:
+                             tv.modified(refresheditor=False)
+                 plugin.active = False
++            # if plugin is enabled and has onQuit member, execute it
++            else:
++                for api in plugin_apis:
++                    if hasattr(plugin.instance, 'onQuit'):
++                        plugin.instance.onQuit(api)
+     
+     def onTaskLoad(self, plugin_api):
+         """Pass the onTaskLoad signal to all active plugins."""
+Index: gtg-0.2.4/GTG/plugins/task_reaper/reaper.py
+===================================================================
+--- gtg-0.2.4.orig/GTG/plugins/task_reaper/reaper.py	2010-06-24 20:18:50.331020862 +0200
++++ gtg-0.2.4/GTG/plugins/task_reaper/reaper.py	2010-06-24 20:18:48.327022423 +0200
+@@ -84,7 +84,13 @@
+     def onTaskOpened(self, plugin_api):
+         pass
+ 
++    def onQuit(self, plugin_api):
++        if self.is_automatic == True:
++            self.cancel_autopurge()
++
+     def deactivate(self, plugin_api):
++        if self.is_automatic == True:
++            self.cancel_autopurge()
+         if self.menu_item_is_shown == True:
+             plugin_api.remove_menu_item(self.menu_item)
+ 

Modified: packages/gtg/trunk/debian/patches/series
===================================================================
--- packages/gtg/trunk/debian/patches/series	2010-06-24 18:12:31 UTC (rev 5673)
+++ packages/gtg/trunk/debian/patches/series	2010-06-24 18:21:28 UTC (rev 5674)
@@ -1 +1,2 @@
 test_executable.patch
+reaper_hang.patch




More information about the Python-apps-commits mailing list