Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/ActivityHost.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/view/ActivityHost.py')
-rw-r--r--shell/view/ActivityHost.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/view/ActivityHost.py b/shell/view/ActivityHost.py
index 4524f56..43ed38c 100644
--- a/shell/view/ActivityHost.py
+++ b/shell/view/ActivityHost.py
@@ -96,11 +96,15 @@ class ActivityHost:
dialog.show()
dialog.window.set_transient_for(self._gdk_window)
- def chat_show(self):
+ def chat_show(self, frame_was_visible):
self._chat_window.show_all()
+ self._frame_was_visible = frame_was_visible
def chat_hide(self):
self._chat_window.hide()
+ wasvis = self._frame_was_visible
+ self._frame_was_visible = False
+ return wasvis
def is_chat_visible(self):
return self._chat_window.get_property('visible')
@@ -108,8 +112,10 @@ class ActivityHost:
def _activity_changed_cb(self, shell, activity):
if activity != self:
self.chat_hide()
+ self._frame_was_visible = False
def _activity_closed_cb(self, shell, activity):
if activity == self:
self.chat_hide()
+ self._frame_was_visible = False