diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-01 10:11:07 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-01 10:11:07 (GMT) |
commit | 63f5f55050e3df5974a0a60d3240827ef7258030 (patch) | |
tree | 8d44450524519bea3062cb882719fb21ba06ba0e /sugar | |
parent | b476b13673e5e3869c286aac871bcd624cc3c070 (diff) | |
parent | 570c7e6052d419ec86587a8c1ebda66c0db8c2e1 (diff) |
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/presence/buddy.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sugar/presence/buddy.py b/sugar/presence/buddy.py index f21c883..ead9482 100644 --- a/sugar/presence/buddy.py +++ b/sugar/presence/buddy.py @@ -65,7 +65,8 @@ class Buddy(gobject.GObject): 'nick' : (str, None, None, None, gobject.PARAM_READABLE), 'color' : (str, None, None, None, gobject.PARAM_READABLE), 'current-activity' : (object, None, None, gobject.PARAM_READABLE), - 'owner' : (bool, None, None, False, gobject.PARAM_READABLE) + 'owner' : (bool, None, None, False, gobject.PARAM_READABLE), + 'ip4-address' : (str, None, None, None, gobject.PARAM_READABLE) } _PRESENCE_SERVICE = "org.laptop.Sugar.Presence" @@ -134,6 +135,11 @@ class Buddy(gobject.GObject): if not self._icon: self._icon = _bytes_to_string(self._buddy.GetIcon()) return self._icon + elif pspec.name == "ip4-address": + # IPv4 address will go away quite soon + if not self._properties.has_key("ip4-address"): + return None + return self._properties["ip4-address"] def object_path(self): """Retrieve our dbus object path""" |