Make the desktop notification transient
authorGuido Günther <agx@sigxcpu.org>
Sun, 13 Feb 2011 11:33:36 +0000 (12:33 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 13 Feb 2011 11:33:36 +0000 (12:33 +0100)
so they timeout and don't clutter the notification area.

gbp/notifications.py

index b2534e3..9115ac3 100644 (file)
@@ -45,6 +45,7 @@ def build_msg(cp, success):
 
 def send_notification(summary, msg):
     n = notify_module.Notification(summary, msg)
+    n.set_hint('transient', True)
     try:
         if not n.show():
             return False