<div dir="ltr">Don't forget to add [DESIGN] for this kind of stuff.<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 January 2014 01:48, Sam Parkinson <span dir="ltr"><<a href="mailto:sam.parkinson3@gmail.com" target="_blank">sam.parkinson3@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I was working on a little notification thing as per the designs. You can download it and test it from here: <a href="https://github.com/SAMdroid-apps/sugar/tree/NotificationWIP" target="_blank">https://github.com/SAMdroid-apps/sugar/tree/NotificationWIP</a> and <a href="https://github.com/SAMdroid-apps/sugar-toolkit-gtk3/tree/NotificationsWIP" target="_blank">https://github.com/SAMdroid-apps/sugar-toolkit-gtk3/tree/NotificationsWIP</a>. You can check out a test activity here: <a href="https://git.sugarlabs.org/~samdroid/hello-world/hello-notification-world" target="_blank">https://git.sugarlabs.org/~samdroid/hello-world/hello-notification-world</a>. (To use the test, press notify and wait 3 seconds).</div>
<div><br></div><div>Here are some pretty pics:</div><div><br></div><div><img src="cid:ii_143db73ca42e305c" alt="Inline image 1" height="401" width="533"><br></div><div>(the thing is in the top-left)</div><div><br></div><div>
<img src="cid:ii_143db75357457bcd" alt="Inline image 2" height="401" width="533"><br></div><div><br></div><div>You can click on the notifications to close them. They do nothing since we don't (yet) have an intent system.</div>
<div><br></div><div>API in sugar3.activity.Activity:</div><div><br></div><div><pre style="white-space:pre-wrap;word-wrap:break-word"> def notify(self, summary, body, intent):
"""
Display a notification with the given summary and body.
The notification will have the activity's icon as the icon.
**intent currently does nothing, so whatch this space**
"""</pre><pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial, helvetica, sans-serif">See the example for usage :)</font></pre><pre style="white-space:pre-wrap;word-wrap:break-word">
<font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial, helvetica, sans-serif">Please tell me what you think :)</font></pre><span class="HOEnZb"><font color="#888888"><pre style="white-space:pre-wrap;word-wrap:break-word">
<font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial, helvetica, sans-serif">Sam</font></pre></font></span></div></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><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div></div></div>