Keep owner in the center in mesh view

This commit is contained in:
Dan Williams 2007-07-18 02:05:09 -04:00
parent 326126cbd7
commit c16c07e954

View File

@ -260,6 +260,9 @@ class MeshBox(hippo.CanvasBox):
self._remove_buddy(buddy_model)
def _buddy_moved_cb(self, model, buddy_model, activity_model):
# Owner doesn't move from the center
if buddy_model.is_owner():
return
self._move_buddy(buddy_model, activity_model)
def _activity_added_cb(self, model, activity_model):