comparison src/gaim-notifications-example.py @ 13220:ac5bc9a7b603

[gaim-migrate @ 15584] SF Patch #1428582 from Casey Harkins "The dbus stuff in gaim is using the namespace org.gaim. gaim.org is obviously not associated with gaim and chances are they would never need the dbus namespace. Regardless, it would probably be better if gaim used net.sf.gaim for the namespace. It'd be easier to change now than after 2.0 is released since things might start depending on gaim's dbus api. The dbus spec and tutorial both suggest/imply (though don't strictly require) that the namespace coorespond to a domain name that you own." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 11 Feb 2006 05:25:47 +0000
parents 64fadbf3810f
children d323a4e74753
comparison
equal deleted inserted replaced
13219:d0f7f698b6de 13220:ac5bc9a7b603
64 account = gaim.GaimBuddyGetAccount(buddyid) 64 account = gaim.GaimBuddyGetAccount(buddyid)
65 gaim.GaimConversationNew(1, account, name) 65 gaim.GaimConversationNew(1, account, name)
66 66
67 67
68 bus = dbus.SessionBus() 68 bus = dbus.SessionBus()
69 obj = bus.get_object("org.gaim.GaimService", "/org/gaim/GaimObject") 69 obj = bus.get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject")
70 gaim = dbus.Interface(obj, "org.gaim.GaimInterface") 70 gaim = dbus.Interface(obj, "net.sf.gaim.GaimInterface")
71 71
72 bus.add_signal_receiver(receivedimmsg, 72 bus.add_signal_receiver(receivedimmsg,
73 dbus_interface = "org.gaim.GaimInterface", 73 dbus_interface = "net.sf.gaim.GaimInterface",
74 signal_name = "ReceivedImMsg") 74 signal_name = "ReceivedImMsg")
75 75
76 bus.add_signal_receiver(buddysignedon, 76 bus.add_signal_receiver(buddysignedon,
77 dbus_interface = "org.gaim.GaimInterface", 77 dbus_interface = "net.sf.gaim.GaimInterface",
78 signal_name = "BuddySignedOn") 78 signal_name = "BuddySignedOn")
79 79
80 print """This is a simple gaim notification server. 80 print """This is a simple gaim notification server.
81 It shows notifications when your buddy signs on or you get an IM message.""" 81 It shows notifications when your buddy signs on or you get an IM message."""
82 82