[kupfer] keybindings: Use INT64 signal parameter type, fixing Y2011 problem



commit 4b72c5317ba35462d8974efc5d35c0906febcdf7
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 1 15:40:24 2011 +0100

    keybindings: Use INT64 signal parameter type, fixing Y2011 problem
    
    Fix Kupfer's "Year 2011" problem with the ui.keybindings module. We
    erronously used TYPE_INT for a gtk/time value and now the value
    doesn't fit in an int and the type conversion from python fails, we
    use TYPE_INT64 instead.

 kupfer/ui/keybindings.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/keybindings.py b/kupfer/ui/keybindings.py
index a4c6908..dd40ae7 100644
--- a/kupfer/ui/keybindings.py
+++ b/kupfer/ui/keybindings.py
@@ -34,7 +34,7 @@ class KeyboundObject (gobject.GObject):
 		self.emit("keybinding", target, time)
 
 gobject.signal_new("keybinding", KeyboundObject, gobject.SIGNAL_RUN_LAST,
-		gobject.TYPE_BOOLEAN, (gobject.TYPE_INT, gobject.TYPE_INT))
+		gobject.TYPE_BOOLEAN, (gobject.TYPE_INT, gobject.TYPE_INT64))
 
 _currently_bound = {}
 



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