[Sugar-devel] [PATCH sugar] Frame: Show windows that were already mapped during Sugar start-up

Sascha Silbe silbe at activitycentral.com
Fri Jul 1 07:09:43 EDT 2011


We won't receive callbacks for windows that were already mapped before
ShellModel gets instantiated because we can only connect to the signals
afterwards.

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

diff --git a/src/jarabe/frame/activitiestray.py b/src/jarabe/frame/activitiestray.py
index 47b6cae..34b7f85 100644
--- a/src/jarabe/frame/activitiestray.py
+++ b/src/jarabe/frame/activitiestray.py
@@ -228,6 +228,9 @@ class ActivitiesTray(HTray):

         filetransfer.new_file_transfer.connect(self.__new_file_transfer_cb)

+        for activity in self._home_model:
+            self.__activity_added_cb(self._home_model, activity)
+
     def __activity_added_cb(self, home_model, home_activity):
         logging.debug('__activity_added_cb: %r', home_activity)
         if self.get_children():
--
1.7.2.5



More information about the Sugar-devel mailing list