Features/Notification Replacement: Difference between revisions

mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>[[Category:Feature|Notification Replacement]]</noinclude>
== Summary ==
== Summary ==
Allow notifications to be replaced by new notifications.
Allow notifications to be replaced by new notifications.
Line 5: Line 6:
* Name: [[User:SAMdroid| Sam P.]]
* Name: [[User:SAMdroid| Sam P.]]


* Email: samDELETEME@sugarlabs.org  (You need to get rid of the DELETEME)
* Email: samDELETEME@sugarlabs.org  (You need to get rid of the DELETEME.)


== Current status ==
== Current status ==
Line 19: Line 20:
It is a small change that does not break compatibility.
It is a small change that does not break compatibility.


It pretty much needs [[Notification Urgency]] so you can replace notifications without a flashy popup thing.
It pretty much needs [[Features/Notification_Urgency]] so you can replace notifications without a flashy popup thing.


==UI Design==
==UI Design==
Line 42: Line 43:
  time.sleep(10)
  time.sleep(10)
   
   
  notifications.Notify("Software Update", 0, "", "MORE New activities are available!", "Please check your activities list AGAIN", [], {'x-sugar-icon-name': 'module-updater', 'urgency': 0}, -1)
  notifications.Notify("Software Update", id, "", "MORE New activities are available!", "Please check your activities list AGAIN", [], {'x-sugar-icon-name': 'module-updater', 'urgency': 0}, -1)
 


== Dependencies ==
== Dependencies ==