Ticket #402: sugar-402.patch

File sugar-402.patch, 911 bytes (added by alsroot, 15 years ago)
  • pippy_app.py

    From 2eb0a23a93e023d35cd532d0b4a344a575a2ecc3 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Mon, 30 Mar 2009 15:14:12 +0000
    Subject: "share or invite" hint even on resume of shared instance #402
    
    ---
     pippy_app.py |    4 +++-
     1 files changed, 3 insertions(+), 1 deletions(-)
    
    diff --git a/pippy_app.py b/pippy_app.py
    index 215f349..9609cdb 100644
    a b class Chat(ViewSourceActivity): 
    8787            self._one_to_one_connection(handle.uri)
    8888        else:
    8989            # we are creating the activity
    90             self._alert(_('Off-line'), _('Share, or invite someone.'))
     90            if not handle.object_id:
     91                # if we creating new session
     92                self._alert(_('Off-line'), _('Share, or invite someone.'))
    9193            self.connect('shared', self._shared_cb)
    9294
    9395    def _shared_cb(self, activity):