Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-16 08:36:15 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-16 08:36:15 (GMT)
commit5bfc64d9bef4c5cf202acfd9502133dd3238ec8c (patch)
tree660542928db24acd0733e87949f187ca22d5476c /shell/model
parentb2e0f257cec37b9de97ecf0ba279c5424722ce04 (diff)
Always center the owner in the home views
Diffstat (limited to 'shell/model')
-rw-r--r--shell/model/BuddyModel.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/model/BuddyModel.py b/shell/model/BuddyModel.py
index a06a728..2339832 100644
--- a/shell/model/BuddyModel.py
+++ b/shell/model/BuddyModel.py
@@ -84,6 +84,11 @@ class BuddyModel(gobject.GObject):
def get_buddy(self):
return self._buddy
+ def is_owner(self):
+ if not self._buddy:
+ return False
+ return self._buddy.props.owner
+
def is_present(self):
if self._buddy:
return True