From aa3ce3a7d2fdfc5528314cf94b64668fc9976743 Mon Sep 17 00:00:00 2001 From: Sebastian Droege Date: Sun, 22 Jan 2006 16:55:21 +0000 Subject: * 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 --- src/service-discovery-applet.in | 11 +++++------ 1 file 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 -- cgit