[Dextrose] [PATCH] Message Notifications second behaviour enhancement

Esteban Bordon ebordon at plan.ceibal.edu.uy
Tue Jan 18 11:21:14 EST 2011


Hi,

I made a python class that get messages from a sqlite3 database and show
them via Martin's notificator.
I want to call this class at sugar startup. ¿Where do I put this call? I
tried in .xsession an sugar-session but it doesn't work.

Thanks in advance,


 Esteban Bordón
Investigación y Desarrollo - Plan Ceibal
Centro Ceibal - Av. Italia 6201 - Montevideo, Uruguay



2011/1/11 Aleksey Lim <alsroot at member.fsf.org>

> 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
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/dextrose/attachments/20110118/b2434d50/attachment-0001.html>


More information about the Dextrose mailing list