Ticket #1444: sugar-1444.patch

File sugar-1444.patch, 1.6 KB (added by alsroot, 11 years ago)
  • src/jarabe/frame/activitiestray.py

    From 461761c316c3659f672a29b920e8e3dc2309af8a Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Thu, 1 Oct 2009 10:16:02 +0000
    Subject: Activities tray doesn't reflect well on switching between windows if there are non-sugar ones #1444
    
    ---
     src/jarabe/frame/activitiestray.py |    8 ++++----
     1 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/jarabe/frame/activitiestray.py b/src/jarabe/frame/activitiestray.py
    index d6831b2..f7d8c0e 100644
    a b class ActivitiesTray(HTray): 
    343343
    344344        button = ActivityButton(home_activity, group)
    345345        self.add_item(button)
    346         self._buttons[home_activity.get_activity_id()] = button
     346        self._buttons[home_activity] = button
    347347        button.connect('clicked', self.__activity_clicked_cb, home_activity)
    348348        button.show()
    349349
    350350    def __activity_removed_cb(self, home_model, home_activity):
    351351        logging.debug('__activity_removed_cb: %r', home_activity)
    352         button = self._buttons[home_activity.get_activity_id()]
     352        button = self._buttons[home_activity]
    353353        self.remove_item(button)
    354         del self._buttons[home_activity.get_activity_id()]
     354        del self._buttons[home_activity]
    355355
    356356    def _activate_activity(self, home_activity):
    357         button = self._buttons[home_activity.get_activity_id()]
     357        button = self._buttons[home_activity]
    358358        self._freeze_button_clicks = True
    359359        button.props.active = True
    360360        self._freeze_button_clicks = False