comparison finch/libgnt/pygnt/dbus-gnt @ 16143:598b1b15b199

Trac Ticket #149 from JensenDied This patch does a rename of our DBus stuff.
author Richard Laager <rlaager@wiktel.com>
date Sun, 15 Apr 2007 18:09:14 +0000
parents 8fd5ab3f9716
children 5e1412f4e67a
comparison
equal deleted inserted replaced
16142:74b2d576f458 16143:598b1b15b199
35 tv.scroll(0) 35 tv.scroll(0)
36 36
37 gnt.gnt_init() 37 gnt.gnt_init()
38 38
39 bus = dbus.SessionBus() 39 bus = dbus.SessionBus()
40 obj = bus.get_object("net.sf.purple.PurpleService", "/net/sf/purple/PurpleObject") 40 obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
41 purple = dbus.Interface(obj, "net.sf.purple.PurpleInterface") 41 purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
42 42
43 bus.add_signal_receiver(buddysignedon, 43 bus.add_signal_receiver(buddysignedon,
44 dbus_interface = "net.sf.purple.PurpleInterface", 44 dbus_interface = "im.pidgin.purple.PurpleInterface",
45 signal_name = "BuddySignedOn") 45 signal_name = "BuddySignedOn")
46 46
47 bus.add_signal_receiver(wrote_msg, 47 bus.add_signal_receiver(wrote_msg,
48 dbus_interface = "net.sf.purple.PurpleInterface", 48 dbus_interface = "im.pidgin.purple.PurpleInterface",
49 signal_name = "WroteImMsg") 49 signal_name = "WroteImMsg")
50 50
51 bus.add_signal_receiver(wrote_msg, 51 bus.add_signal_receiver(wrote_msg,
52 dbus_interface = "net.sf.purple.PurpleInterface", 52 dbus_interface = "im.pidgin.purple.PurpleInterface",
53 signal_name = "WroteChatMsg") 53 signal_name = "WroteChatMsg")
54 54
55 bus.add_signal_receiver(conv_closed, 55 bus.add_signal_receiver(conv_closed,
56 dbus_interface = "net.sf.purple.PurpleInterface", 56 dbus_interface = "im.pidgin.purple.PurpleInterface",
57 signal_name = "DeletingConversation") 57 signal_name = "DeletingConversation")
58 58
59 def get_dict_key(conv): 59 def get_dict_key(conv):
60 val = purple.PurpleConversationGetName(conv) 60 val = purple.PurpleConversationGetName(conv)
61 return val 61 return val