[Dextrose] [PATCH] Message Notifications second behaviour enhancement
Aleksey Lim
alsroot at member.fsf.org
Tue Jan 11 11:47:25 EST 2011
On Tue, Jan 11, 2011 at 11:49:39AM -0300, Martin Abente wrote:
> Corner notification icon will only show up if the frame is not
> visible.
+1, moreove it supress issue w/ not popping up the frame on
moving mouse cursor to left-top corner of notification icon
>
> ---
> 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
>
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose
>
--
Aleksey
More information about the Dextrose
mailing list