[pyatspi2] Move the application argument to the end of the event structure to allow matching on the minor strin



commit f3d4ffc5d7af72f6ace595ef6860e8abf46b0a4e
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Wed Feb 3 17:10:57 2010 -0800

    Move the application argument to the end of the event structure
    to allow matching on the minor string.

 pyatspi/appevent.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/appevent.py b/pyatspi/appevent.py
index 6c4fa10..def2614 100644
--- a/pyatspi/appevent.py
+++ b/pyatspi/appevent.py
@@ -180,11 +180,11 @@ def event_type_to_signal_reciever(bus, factory, event_handler, event_type):
         if event_type.minor:
                 kwargs['arg0'] = event_type.minor
 
-        def handler_wrapper(source_application,
-                            minor,
+        def handler_wrapper(minor,
                             detail1,
                             detail2,
                             any_data,
+                            source_application,
                             sender=None,
                             interface=None,
                             member=None,



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