[Dextrose] [PATCH] Message Notifications second behaviour enhancement

Martin Abente martin.abente.lahaye at gmail.com
Tue Jan 11 09:49:39 EST 2011


Corner notification icon will only show up if the frame is not
visible.

---
 src/jarabe/frame/frame.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/frame/frame.py b/src/jarabe/frame/frame.py
index 4366076..663f297 100644
--- a/src/jarabe/frame/frame.py
+++ b/src/jarabe/frame/frame.py
@@ -390,8 +390,10 @@ class Frame(object):
         button.start_pulsing()
 
         palette.push_message(body, summary, icon_name, xo_color)
-        self._launch_notification_icon(_DEFAULT_ICON, xo_color, corner, duration)
 
+        if not self.visible:
+            self._launch_notification_icon(_DEFAULT_ICON, xo_color,
+                                            corner, duration)
 
     def remove_message(self, palette, corner):
         if corner not in self._notif_by_message:
-- 
1.7.1



More information about the Dextrose mailing list