Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch
blob: 0b58b4e0dd836613838a1a122cd63bcb17b21e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 341719f37739f31400f8eb4afb803125b0df5a8a Mon Sep 17 00:00:00 2001
From: Martin Abente <martin.abente.lahaye@gmail.com>
Date: Tue, 11 Jan 2011 19:49:39 +0000
Subject: [PATCH sugar 53/74] Message Notifications second behaviour
 enhancement

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 6a9735b..cd1dc20 100644
--- a/src/jarabe/frame/frame.py
+++ b/src/jarabe/frame/frame.py
@@ -396,8 +396,10 @@ def add_message(self, body, summary='', icon_name=_DEFAULT_ICON,
         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.6