<div dir="ltr">Hello Sebastian,<div><br></div><div>The notification back-end is already a subset of freedesktop notification definition. That is something we had in Sugar since a long time. We just added some other missing parts (displaying subject and body).</div>
<div><br></div><div>But, for the front-end, If you look at Gary's design, you will see that is not the typical independent bubble UI component, as it groups notifications according to some context (ie., when is an activity).</div>
<div><br></div><div>So, the motivation behind this method is (as you also suggest) to add some sugar syntax to facilitate its usage for activity developers.</div><div><br></div><div>Having explained that, any recommendation for the name? :)</div>
<div><br></div><div>Saludos!</div><div>tch.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 10:20 AM, Sebastian Silva <span dir="ltr"><<a href="mailto:sebastian@fuentelibre.org" target="_blank">sebastian@fuentelibre.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Martin,<div><br></div><div>What about using this:</div><div><a href="https://developer.gnome.org/notification-spec/" target="_blank">https://developer.gnome.org/notification-spec/</a> ?</div><div><br></div><div>I really think we should be moving towards FreeDesktop standards instead of rolling our own.</div>
<div><br></div><div>Currently it would look like this, or you can add some syntax sugar to it:</div><div><br></div><div>#!/usr/bin/python</div><div>from gi.repository import Notify</div><div>Notify.init ("Hello world")</div>
<div>Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")</div><div>Hello.show ()<br><br>El mié, 26 de mar 2014 a las 7:40 AM, Martin Abente <<a href="mailto:martin.abente.lahaye@gmail.com" target="_blank">martin.abente.lahaye@gmail.com</a>> escribió:<div>
<div class="h5"><br>
<blockquote type="cite"><div dir="ltr">Hello Everyone,<div><br></div><div>We recently landed a messages notifications feature, based on Gary's designs [1]. One of our GCI 2013 hackers, Sam Parkinson, is has sent the bits to enable activities to send notifications too, as in Gary's design. </div>
<div><br></div><div>His work is almost done [2,3,4], but it introduces a new method to the base Activity class, therefore I wanted your opinions regarding the name of this method, the current options are [4]:</div><div><br>
</div><div>* send_notification</div><div>* add_notification<br></div><div>* shell_notify</div><div>* sugar_notify</div><div> </div><div><br></div><div>Thanks for your time!</div><div>tch.</div><div><br></div><div>Refs:</div>
<div>1. <a href="http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications" target="_blank">http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications</a><br><div>2. <a href="https://github.com/sugarlabs/sugar/pull/301" target="_blank">https://github.com/sugarlabs/sugar/pull/301</a></div>
<div>3. <a href="https://github.com/sugarlabs/sugar/pull/300" target="_blank">https://github.com/sugarlabs/sugar/pull/300</a></div></div><div>4. <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/114" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/114</a></div>
</div>
</blockquote></div></div></div></blockquote></div><br></div>