<p dir="ltr">Hi,</p>
<p dir="ltr">It is compatible with the dbus interface thing. But notifications with an app name of something like "Chat activity" will get a new icon in the frame. The function in the toolkit just sends a notification where the name is the activities id, which shows it under the activity button.</p>

<p dir="ltr">Sam</p>
<div class="gmail_quote">On Mar 27, 2014 4:21 AM, "Sebastian Silva" <<a href="mailto:sebastian@fuentelibre.org">sebastian@fuentelibre.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Sorry I hadn't read the proposal in detail.<div><br></div><div>So if I understand correctly, if a regular X11 application emits a gi.repository.Notification, it will display correctly in Sugar?</div><div><br></div><div>
That's great, kudos on the work.</div><div><br></div><div>Sebastian </div><div><br>El mié, 26 de mar 2014 a las 10:21 AM, Martin Abente <<a href="mailto:martin.abente.lahaye@gmail.com" target="_blank">martin.abente.lahaye@gmail.com</a>> escribió:<br>

<blockquote type="cite"><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><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>
</blockquote></div><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>
<br></blockquote></div>