Initialize _frame_was_visible, and move signal connections lower
This commit is contained in:
parent
ef539c50d9
commit
e2225c443f
@ -24,8 +24,6 @@ class ActivityChatWindow(gtk.Window):
|
|||||||
class ActivityHost:
|
class ActivityHost:
|
||||||
def __init__(self, shell, window):
|
def __init__(self, shell, window):
|
||||||
self._shell = shell
|
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._window = window
|
||||||
self._xid = window.get_xid()
|
self._xid = window.get_xid()
|
||||||
@ -47,6 +45,10 @@ class ActivityHost:
|
|||||||
self._chat_widget = ActivityChat.ActivityChat(self)
|
self._chat_widget = ActivityChat.ActivityChat(self)
|
||||||
self._chat_window = ActivityChatWindow(self._gdk_window, self._chat_widget)
|
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):
|
def get_id(self):
|
||||||
return self._id
|
return self._id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user