[Jim] middle click on a tab closes it. Fixes #1554

This commit is contained in:
Yann Leboulanger 2006-03-01 17:01:25 +00:00
parent b58218a2fd
commit b07bf11d0b
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,9 @@ class MessageWindow:
n = self.notebook.page_num(child)
self.notebook.set_current_page(n)
self.popup_menu(event)
elif event.button == 2: # middle click
ctrl = self._widget_to_control(child)
self.remove_tab(ctrl)
def _on_message_textview_mykeypress_event(self, widget, event_keyval,
event_keymod):