Changeset 9157 for branches/one_window/src/message_window.py
- Timestamp:
- 12/16/07 01:47:20 (11 months ago)
- Files:
-
- 1 modified
-
branches/one_window/src/message_window.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/one_window/src/message_window.py
r9155 r9157 428 428 # dnd clean up 429 429 self.notebook.drag_dest_unset() 430 self.window.destroy() 430 if self.parent_paned: 431 # Don't close parent window, just remove the child 432 child = self.parent_paned.get_child2() 433 self.parent_paned.remove(child) 434 # FIXME: restore preferred roster size 435 else: 436 self.window.destroy() 431 437 return # don't show_title, we are dead 432 438 elif self.get_num_controls() == 1: # we are going from two tabs to one … … 694 700 695 701 ################################################################################ 696 class MessageWindowMgr :702 class MessageWindowMgr(gobject.GObject): 697 703 '''A manager and factory for MessageWindow objects''' 704 __gsignals__ = { 705 'window-delete': (gobject.SIGNAL_RUN_LAST, None, (object,)), 706 } 698 707 699 708 # These constants map to common.config.opt_one_window_types indices … … 717 726 ONE_MSG_WINDOW_PERACCT: The key is the account name 718 727 ONE_MSG_WINDOW_PERTYPE: The key is a message type constant''' 728 gobject.GObject.__init__(self) 719 729 self._windows = {} 720 730 … … 879 889 for k in self._windows.keys(): 880 890 if self._windows[k].window == win: 891 self.emit('window-delete', self._windows[k]) 881 892 del self._windows[k] 882 893 return … … 945 956 size_height_key = type + '-msgwin-height' 946 957 elif self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: 947 width -= msg_win.parent_paned.get_position() 958 # Ignore any hpaned width 959 width = msg_win.notebook.allocation.width 948 960 949 961 if acct:
