comparison src/gaim-notifications-example.py @ 13265:d323a4e74753

[gaim-migrate @ 15631] Silence intltool warnings... Yes, nothing is wrong here. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 13 Feb 2006 02:28:44 +0000
parents ac5bc9a7b603
children
comparison
equal deleted inserted replaced
13264:ed68ee2e8bab 13265:d323a4e74753
57 "'So what?','Let's talk'", text) 57 "'So what?','Let's talk'", text)
58 58
59 if code == 101: # so what? 59 if code == 101: # so what?
60 pass 60 pass
61 61
62 if code == 102: # let's talk 62 if code == 102: # talk
63 name = gaim.GaimBuddyGetName(buddyid) 63 name = gaim.GaimBuddyGetName(buddyid)
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
75 75
76 bus.add_signal_receiver(buddysignedon, 76 bus.add_signal_receiver(buddysignedon,
77 dbus_interface = "net.sf.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 print "It shows notifications when your buddy signs on or you get an IM message."
82 82
83 loop = gobject.MainLoop() 83 loop = gobject.MainLoop()
84 loop.run() 84 loop.run()
85 85
86 86