<div dir="ltr">I think the firs option is the best. That addition was discussed a few times<div>but never implemented in Sugar. </div><div>Please share your code then can be added in the next version of Sugar.</div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 11:54 AM, Gustavo Duarte <span dir="ltr"><<a href="mailto:gus.duarte@gmail.com" target="_blank">gus.duarte@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys,<br>
<br>
<br>
I need build an app, which shows a message to kids with some text and<br>
one link which could be opened by Browser activity, like a<br>
notification.<br>
<br>
I know that already exist a way, to show notifications which will be<br>
placed on the top bar,  by dbus, "org.freedesktop.Notifications",<br>
however it doesn't work for because, when I did a click on the link<br>
the Browser activity isn't opened.<br>
<br>
        DBUS_NAME="org.freedesktop.Notifications"<br>
        OBJ_PATH="/org/freedesktop/Notifications"<br>
        icon = None<br>
        IFACE_NAME="org.freedesktop.Notifications"<br>
        bus = dbus.SessionBus()<br>
        notify_obj = bus.get_object(DBUS_NAME,OBJ_PATH)<br>
        notifications=dbus.Interface(notify_obj,IFACE_NAME)<br>
        notifications.Notify("",0,icon,'Title',"<a href="http://www.google.com" target="_blank">www.google.com</a>",[], hints ,-1)<br>
<br>
<br>
<br>
I think, may be, I have  tow options,<br>
<br>
1) Add a kind of event, on the notification widget, to recognise the<br>
click and open the Browser activity.<br>
<br>
2) Make another type of widget, like a Dialog, where ca be easier add<br>
an event click to open the Browser.<br>
<br>
What is your opinion ? Are there other obvious options, that I'm can't seeing ?<br>
<br>
<br>
Thanks in advance.<br>
<br>
Gustavo.<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>