add kwargs support for notifications
[enigma2.git] / lib / python / Tools / Notifications.py
index b547639beb20f7910ff3ea0a0bfc96b71a3a3b64..3cb107cc4dc58575bac5cab5d1bc8bb4ed6339d1 100644 (file)
@@ -3,11 +3,10 @@ notifications = [ ]
 
 notificationAdded = [ ]
 
-def AddNotification(screen, *args):
-       AddNotificationWithCallback(None, screen, *args)
+def AddNotification(screen, *args, **kwargs):
+       AddNotificationWithCallback(None, screen, *args, **kwargs)
 
-def AddNotificationWithCallback(fnc, screen, *args):
-       notifications.append((fnc, screen) + args)
+def AddNotificationWithCallback(fnc, screen, *args, **kwargs):
+       notifications.append((fnc, screen, args, kwargs))
        for x in notificationAdded:
                x()
-