Changeset 9184
- Timestamp:
- 12/20/07 04:40:27 (11 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
chat_control.py (modified) (1 diff)
-
message_window.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r9118 r9184 644 644 645 645 def print_conversation_line(self, text, kind, name, tim, 646 other_tags_for_name = [], other_tags_for_time = [], 646 other_tags_for_name = [], other_tags_for_time = [], 647 647 other_tags_for_text = [], count_as_new = True, 648 648 subject = None, old_kind = None, xhtml = None): -
trunk/src/message_window.py
r9183 r9184 239 239 240 240 self.redraw_tab(control) 241 self.notebook.show_all() 241 if self.parent_paned: 242 self.notebook.show_all() 243 else: 244 self.window.show_all() 242 245 # NOTE: we do not call set_control_active(True) since we don't know whether 243 246 # the tab is the active one. … … 438 441 child = self.parent_paned.get_child2() 439 442 self.parent_paned.remove(child) 440 # FIXME: restore preferred roster size441 443 else: 442 444 self.window.destroy() … … 926 928 for w in self.windows(): 927 929 self.save_state(w, width_adjust) 928 w.window.hide() 929 w.window.destroy() 930 if not w.parent_paned: 931 w.window.hide() 932 w.window.destroy() 933 930 934 gajim.interface.save_config() 931 935 … … 994 998 controls = [] 995 999 for w in self.windows(): 996 w.window.hide() 1000 # Note, we are taking care not to hide/delete the roster window when the 1001 # MessageWindow is embedded. 1002 if not w.parent_paned: 1003 w.window.hide() 997 1004 while w.notebook.get_n_pages(): 998 1005 page = w.notebook.get_nth_page(0) … … 1003 1010 # Must clear _controls from window to prevent MessageControl.shutdown calls 1004 1011 w._controls = {} 1005 w.window.destroy() 1012 if not w.parent_paned: 1013 w.window.destroy() 1014 else: 1015 # Don't close parent window, just remove the child 1016 child = w.parent_paned.get_child2() 1017 w.parent_paned.remove(child) 1006 1018 1007 1019 self._windows = {}
