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:
authorDan Williams <dcbw@localhost.localdomain>2006-09-28 20:12:07 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-09-28 20:12:07 (GMT)
commitef539c50d9eadec934da5ba7b145c41f694518f1 (patch)
tree7d239476cdc684ee971df39abcefe8d54bf07e9b /shell/view/ActivityHost.py
parenta91738d3a9a85b46952995df12ed473692e5c2e6 (diff)
Fix frame behavior on chat; when we show the chat remember previous frame state and return to it when we hide chat
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