1
Subject: Fixed signature of Statuses property (SimplePresence interface)
2
X-Git-Tag: telepathy-butterfly-0.5.1~4
3
X-Git-Url: http://git.collabora.co.uk/?p=telepathy-butterfly.git;a=commitdiff_plain;h=21fac708ea2ac6a76df77921cc252cad7521a500
5
Fixed signature of Statuses property (SimplePresence interface)
8
diff --git a/butterfly/presence.py b/butterfly/presence.py
9
index d072d2a..302fe4f 100644
10
--- a/butterfly/presence.py
11
+++ b/butterfly/presence.py
18
import telepathy.constants
19
import telepathy.errors
20
@@ -235,7 +236,7 @@ class ButterflyPresence(telepathy.server.ConnectionInterfacePresence,
21
def get_statuses(self):
22
# you get one of these for each status
23
# {name:(Type, May_Set_On_Self, Can_Have_Message}
25
+ return dbus.Dictionary({
26
ButterflyPresenceMapping.ONLINE:(
27
telepathy.CONNECTION_PRESENCE_TYPE_AVAILABLE,
29
@@ -263,7 +264,7 @@ class ButterflyPresence(telepathy.server.ConnectionInterfacePresence,
30
ButterflyPresenceMapping.OFFLINE:(
31
telepathy.CONNECTION_PRESENCE_TYPE_OFFLINE,
34
+ }, signature='s(ubb)')
36
# papyon.event.ContactEventInterface
37
def on_contact_presence_changed(self, contact):