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
diff options
context:
space:
mode:
Diffstat (limited to 'rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch')
-rw-r--r--rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch b/rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch
new file mode 100644
index 0000000..0b58b4e
--- /dev/null
+++ b/rpms/sugar/0053-Message-Notifications-second-behaviour-enhancement.patch
@@ -0,0 +1,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
+