Remove trailing whitespaces.
This commit is contained in:
parent
310e2cc347
commit
27b3592e16
1 changed files with 899 additions and 899 deletions
|
|
@ -23,13 +23,13 @@ import dbus
|
|||
|
||||
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 @@ class Notify:
|
|||
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 @@ class Notify:
|
|||
#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
|
||||
|
|
|
|||
Loading…
Reference in a new issue