Changes

Jump to navigation Jump to search
no edit summary
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 36: Line 37:  
  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)
 
+
 
  id = notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater', 'urgency': 1}, -1)
 
  id = notifications.Notify("Software Update", 0, "", "New activities are available!", "Please check your activities list", [], {'x-sugar-icon-name': 'module-updater', 'urgency': 1}, -1)
 
+
 
  import time
 
  import time
 
  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 ==

Navigation menu