Mercurial > libervia-backend
diff frontends/src/primitivus/notify.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | ca13633d3b6b |
children | beaf6bec2fcd |
line wrap: on
line diff
--- a/frontends/src/primitivus/notify.py Fri Jan 18 17:55:27 2013 +0100 +++ b/frontends/src/primitivus/notify.py Fri Jan 18 17:55:34 2013 +0100 @@ -23,13 +23,13 @@ class Notify: """Used to send notification and detect if we have focus""" - + def __init__(self): #X11 stuff self.display = None self.X11_id = -1 - + try: from Xlib import display as X_display self.display = X_display.Display() @@ -44,7 +44,7 @@ self.freedesktop_int = dbus.Interface(db_object, dbus_interface='org.freedesktop.Notifications') except: self.freedesktop_int = None - + def getFocus(self): if not self.display: @@ -62,15 +62,15 @@ #TODO: check options before sending notifications if self.freedesktop_int: self.sendFDNotification(summ_mess, body_mess) - + def sendFDNotification(self, summ_mess, body_mess=""): """Send notification with the FreeDesktop D-Bus API""" if self.freedesktop_int: - app_name = "Primitivus" + app_name = "Primitivus" replaces_id = 0 app_icon = "" summary = summ_mess - body = body_mess + body = body_mess actions = dbus.Array(signature='s') hints = dbus.Dictionary(signature='sv') expire_timeout = -1