~ubuntu-branches/ubuntu/karmic/sugar-presence-service/karmic

« back to all changes in this revision

Viewing changes to src/buddy.py

  • Committer: Bazaar Package Importer
  • Author(s): Jani Monoses
  • Date: 2008-02-08 13:15:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080208131542-ck7vnmt74j3ph765
Tags: 0.75.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
        self.set_properties(props)
569
569
        # If the properties didn't contain the key or color, then we're never
570
570
        # going to get one.
 
571
 
 
572
        # Buddy need a key to be valid
 
573
        if self._key is None:
 
574
            return
 
575
 
571
576
        try:
572
577
            self._awaiting.remove('properties')
573
578
        except KeyError:
596
601
        # Telepathy connection
597
602
        if current_activity or self._current_activity_plugin is tp:
598
603
            self._current_activity_plugin = tp
599
 
            self.set_properties({_PROP_CURACT: current_activity})
 
604
            gobject.timeout_add(500, 
 
605
                lambda: self.set_properties(
 
606
                    {_PROP_CURACT: current_activity}))
600
607
 
601
608
    def update_avatar(self, tp, new_avatar_token, icon=None, mime_type=None):
602
609
        """Handle update of the avatar"""