Difference between revisions of "Features/Notification System"
m (→UI Design: Use intrawiki formatting to enable 'What links here' wiki feature) |
Tonyforster (talk | contribs) (→How To Test: changed to double quotes was giving italic) |
||
Line 71: | Line 71: | ||
notify_obj = bus.get_object(BUS_NAME,OBJ_PATH) | notify_obj = bus.get_object(BUS_NAME,OBJ_PATH) | ||
notifications = dbus.Interface(notify_obj,IFACE_NAME) | notifications = dbus.Interface(notify_obj,IFACE_NAME) | ||
− | notifications.Notify("Software Update", 0, | + | notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater'}, -1) |
== User Experience == | == User Experience == |
Revision as of 00:49, 5 April 2014
Summary
This adds a simple messages notification system for sugar that can be used by the system, journal and activities notifications.
Owner
- Name: SAMdroid
- Email: sam.parkinson3@gmail.com
- Name: tch
- Email: tch@sugarlabs.org
Current status
- Targeted release: 0.102
- Last updated: 8th of Feb
- Percentage of completion: 90%
Detailed Description
Benefit to Sugar
This would be nice for chat, calenders, and any other kind of even that the user should be aware of. It would help bring us into line with the other desktop environs.
Scope
The current implementation covers most the building blocks that are required for journal, activities and system message notifications. At the moment, only system messages are implemented, using these same building blocks.
UI Design
Design Team/Proposals/Notifications
How To Test
For system notifications you can run this script, ie., from Terminal activity:
import dbus BUS_NAME = 'org.freedesktop.Notifications' OBJ_PATH = '/org/freedesktop/Notifications' IFACE_NAME = 'org.freedesktop.Notifications' bus = dbus.SessionBus() notify_obj = bus.get_object(BUS_NAME,OBJ_PATH) notifications = dbus.Interface(notify_obj,IFACE_NAME) notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater'}, -1)
User Experience
These messages notifications should not distract the user, as they are displayed in each notification area.
Contingency Plan
WORK HARDER
Comments and Discussion
http://lists.sugarlabs.org/archive/sugar-devel/2014-February/047096.html