[Sugar-devel] [PATCH sugar] ActivityListPalette: fix bundle_changed disconnection

Sascha Silbe silbe at activitycentral.com
Thu Mar 3 09:58:46 EST 2011


Fixing the regressions from SL#1742 uncovered another bug: ActivityListPalette
listens to the bundle_changed signal from the bundle registry and tries to
disconnect it from itself instead of from the registry.
Fixes the following warning:

[...]/jarabe/desktop/activitieslist.py:428:
Warning: /scratch/build-area/glib2.0-2.24.2/gobject/gsignal.c:2390: instance
`0x35022b0' has no handler with id `2278'
  self.disconnect(self._activity_changed_sid)

Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
---
 src/jarabe/desktop/activitieslist.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
index 0370ef3..05d760e 100644
--- a/src/jarabe/desktop/activitieslist.py
+++ b/src/jarabe/desktop/activitieslist.py
@@ -424,7 +424,8 @@ class ActivityListPalette(ActivityPalette):
             menu_item.props.sensitive = False
 
     def __destroy_cb(self, palette):
-        self.disconnect(self._activity_changed_sid)
+        registry = bundleregistry.get_registry()
+        registry.disconnect(self._activity_changed_sid)
 
     def _update_favorite_item(self):
         label = self._favorite_item.child
-- 
1.7.2.3



More information about the Sugar-devel mailing list