libpurple/plugins/dbus-buddyicons-example.py

changeset 16205
397be242f4a4
parent 15435
4b933b06d75e
child 18068
b6554e3c8224
child 19859
71d37b57eff2
--- a/libpurple/plugins/dbus-buddyicons-example.py	Sun Apr 15 18:06:49 2007 +0000
+++ b/libpurple/plugins/dbus-buddyicons-example.py	Sun Apr 15 18:09:14 2007 +0000
@@ -2,7 +2,7 @@
 #
 # Print the aliases of buddies who have a buddy-icon set.
 #
-# Gaim is the legal property of its developers, whose names are too numerous
+# Purple is the legal property of its developers, whose names are too numerous
 # to list here.  Please refer to the COPYRIGHT file distributed with this
 # source distribution.
 #
@@ -24,13 +24,13 @@
 import dbus
 
 bus = dbus.SessionBus()
-obj = bus.get_object("net.sf.gaim.GaimService", "/net/sf/gaim/GaimObject")
-gaim = dbus.Interface(obj, "net.sf.gaim.GaimInterface")
+obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
+purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
 
-node = gaim.GaimBlistGetRoot()
+node = purple.PurpleBlistGetRoot()
 while node != 0:
-	if gaim.GaimBlistNodeIsBuddy(node):
-		icon = gaim.GaimBuddyGetIcon(node)
+	if purple.PurpleBlistNodeIsBuddy(node):
+		icon = purple.PurpleBuddyGetIcon(node)
 		if icon != 0:
-			print gaim.GaimBuddyGetAlias(node)
-	node = gaim.GaimBlistNodeNext(node, 0)
+			print purple.PurpleBuddyGetAlias(node)
+	node = purple.PurpleBlistNodeNext(node, 0)

mercurial