David, to be clear, you do know that filtering by service type already exists in the code, right? That is one of the three configuration options that do exist, along with whether or not to provide notifications and whether or not to ignore local services.
In Bug 33517, Mark Shuttleworth suggests that we have the applet use append mode. There is only one call in the code for doing notification:
David, to be clear, you do know that filtering by service type already exists in the code, right? That is one of the three configuration options that do exist, along with whether or not to provide notifications and whether or not to ignore local services.
In Bug 33517, Mark Shuttleworth suggests that we have the applet use append mode. There is only one call in the code for doing notification:
def display_ notification( self, title, message, iconfile = "file:/ //usr/share/ service- discovery- applet/ icons// 48x48/service- discovery- applet. png"): notifications == True: Notification( title, message, iconfile) window. get_origin( ) to_widget( self.applet. window)
n.show( )
try:
if self.show_
n = pynotify.
# x,y = self.applet.
# n.set_hint("x",x)
# n.set_hint("y",y)
# n.attach_
except:
print "can't use notification daemon"
pass
The hinting code is commented out in both Intrepid and Jaunty, so no change there. If I understand Mark's suggestion, the correct change would be:
# diff -u service- discovery- applet~ service- discovery- applet discovery- applet~ 2008-06-12 08:18:07.000000000 +0200 discovery- applet 2009-03-26 03:06:43.000000000 +0100 to_widget( self.applet. window) "x-canonical- append" , "allowed")
n.show( )
--- service-
+++ service-
@@ -249,6 +249,7 @@
# n.set_hint("x",x)
# n.set_hint("y",y)
# n.attach_
+ n.set_hint(
except:
print "can't use notification daemon"
I've made the change locally, and will try it out.