[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82

Michael 'Mickey' Lauer mickey at vanille-media.de
Mon Feb 2 18:51:15 UTC 2009


The following commit has been merged in the master branch:
commit d68130c6c63dc97af0ef6e00c824c01c8403527f
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Thu Nov 13 16:47:53 2008 +0100

    odeviced: use gobject.timeout_add instead of timeout_add_seconds, since
    we need the granularity here. This fixes the power button (hence suspend)
    seemingly not working always.

diff --git a/framework/subsystems/odeviced/input.py b/framework/subsystems/odeviced/input.py
index b048113..793d856 100644
--- a/framework/subsystems/odeviced/input.py
+++ b/framework/subsystems/odeviced/input.py
@@ -8,7 +8,7 @@ GPLv2 or later
 """
 
 MODULE_NAME = "odeviced.input"
-__version__ = "0.9.9.3"
+__version__ = "0.9.9.4"
 
 from pyglet.linux_const import EV_ABS
 from pyglet.linux import input_device_supports_event_type
@@ -125,7 +125,8 @@ class Input( dbus.service.Object, asyncworker.AsyncWorker ):
         if ( typ, code ) in self.watches:
             if value == 0x01: # pressed
                 if self.reportheld[ typ, code ]:
-                    timeout = gobject.timeout_add_seconds( 1, self.callbackKeyHeldTimeout, typ, code )
+                    # not using gobject.timeout_add_seconds here, since we need to granularity
+                    timeout = gobject.timeout_add( 1000, self.callbackKeyHeldTimeout, typ, code )
                 else:
                     timeout = 0
                 self.events[ ( typ, code ) ] = timestamp, timeout

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list