Ticket #1296: 0001-Close-tube-after-the-activity-window-is-closed-1296.patch

File 0001-Close-tube-after-the-activity-window-is-closed-1296.patch, 1.1 KB (added by tomeu, 12 years ago)
  • src/sugar/activity/activity.py

    From efe057555f57538596863ce02ea23000dee7ac0b Mon Sep 17 00:00:00 2001
    From: Tomeu Vizoso <tomeu@sugarlabs.org>
    Date: Mon, 7 Sep 2009 13:17:57 +0200
    Subject: [PATCH] Close tube after the activity window is closed #1296
    
    ---
     src/sugar/activity/activity.py |    9 +++++----
     1 files changed, 5 insertions(+), 4 deletions(-)
    
    diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
    index 0540bb1..35965c8 100644
    a b class Activity(Window, gtk.Container): 
    764764                self._show_keep_failed_dialog()
    765765                return False
    766766
    767         if self.shared_activity:
    768             self.shared_activity.leave()
    769 
    770767        self._closing = True
    771768
    772769        return True
    773770
    774771    def _complete_close(self):
    775         self._cleanup_jobject()
    776772        self.destroy()
    777773
     774        if self.shared_activity:
     775            self.shared_activity.leave()
     776
     777        self._cleanup_jobject()
     778
    778779        # Make the exported object inaccessible
    779780        dbus.service.Object.remove_from_connection(self._bus)
    780781