summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Droege <slomo@ubuntu.com>2006-01-22 16:55:21 +0000
committerSebastian Droege <slomo@ubuntu.com>2006-01-22 16:55:21 +0000
commitaa3ce3a7d2fdfc5528314cf94b64668fc9976743 (patch)
treee51b23b6a85e2f4533fac15e8af2a0111a41d08a
parent2d6a15850fb6f55379089273b7229fcaf36df480 (diff)
* port to new notify-daemon API (markup still broken)
git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@88 3be567f1-68ff-0310-b24a-ad7cc433fd2f
-rwxr-xr-xsrc/service-discovery-applet.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in
index 295ce5d..3f0618d 100755
--- a/src/service-discovery-applet.in
+++ b/src/service-discovery-applet.in
@@ -163,9 +163,9 @@ class Notifications:
def display_service_notification(self, new, name, type):
- iconfile = "@iconsdir@/48x48/%s.png" % (type)
+ iconfile = "file://@iconsdir@/48x48/%s.png" % (type)
if not os.path.exists(iconfile):
- iconfile = "@iconsdir@/48x48/service-discovery-applet.png"
+ iconfile = "file://@iconsdir@/48x48/service-discovery-applet.png"
stdb = ServiceTypeDatabase()
h_type = stdb.get_human_type(type)
@@ -178,13 +178,12 @@ class Notifications:
self.display_notification(title, message, iconfile)
- def display_notification(self, title, message, iconfile = "@iconsdir@/48x48/service-discovery-applet.png"):
+ def display_notification(self, title, message, iconfile = "file://@iconsdir@/48x48/service-discovery-applet.png"):
try:
if self.applet.show_notifications == True:
self.notif.Notify(_("Zeroconf Service Discovery"),
- iconfile, dbus.UInt32(0),"",dbus.Byte(0),
- title,message,
- [iconfile],[""],[""],True,dbus.UInt32(3))
+ iconfile, dbus.UInt32(0), title, message,
+ [], [], dbus.Int32(3000), dbus.UInt32(0))
except:
print "can't use notification daemon"
pass