From e2225c443f263bffb5cb11e9eea30e8add860b0a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 28 Sep 2006 16:13:48 -0400 Subject: [PATCH] Initialize _frame_was_visible, and move signal connections lower --- shell/view/ActivityHost.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/view/ActivityHost.py b/shell/view/ActivityHost.py index 43ed38ce..caf22b88 100644 --- a/shell/view/ActivityHost.py +++ b/shell/view/ActivityHost.py @@ -24,8 +24,6 @@ class ActivityChatWindow(gtk.Window): class ActivityHost: def __init__(self, shell, window): self._shell = shell - self._shell.connect('activity-changed', self._activity_changed_cb) - self._shell.connect('activity-closed', self._activity_closed_cb) self._window = window self._xid = window.get_xid() @@ -47,6 +45,10 @@ class ActivityHost: self._chat_widget = ActivityChat.ActivityChat(self) self._chat_window = ActivityChatWindow(self._gdk_window, self._chat_widget) + self._frame_was_visible = False + self._shell.connect('activity-changed', self._activity_changed_cb) + self._shell.connect('activity-closed', self._activity_closed_cb) + def get_id(self): return self._id