Features/Notification System: Difference between revisions

Tch (talk | contribs)
No edit summary
Godiard (talk | contribs)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:FeatureLanded|Notification System]]
== Summary ==
== Summary ==
This adds a simple messages notification system for sugar that can be used by the system, journal and activities notifications.
This adds a simple messages notification system for sugar that can be used by the system, journal and activities notifications.
Line 44: Line 45:


If one entity receives more than 5 notifications, scrolling will be used to limit the space.]]
If one entity receives more than 5 notifications, scrolling will be used to limit the space.]]
[[File:Notifications-006.png  | thumb | center | 640px |
The notification summary and body are limited in width, only 70 characters will be displayed.]]


== Benefit to Sugar ==
== Benefit to Sugar ==
Line 50: Line 55:


== Scope ==
== Scope ==
The current implementation covers all the building blocks that are required for journal, activities
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
and system message notifications. At the moment, only system messages are implemented, using these
same building blocks.
same building blocks.


==UI Design==
==UI Design==
http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications
[[Design Team/Proposals/Notifications]]


== How To Test ==
== How To Test ==
Line 67: Line 72:
     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, '', "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater'}, -1)
     notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater'}, -1)
 
From activities you can use this simplified method, (Gtk3 is required):
 
    self.notify_user('This is the summary','This is a much longer body... describing something...')


== User Experience ==
== User Experience ==