From b07bf11d0b0e65367c023d0f3f5b02c777d000a1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 1 Mar 2006 17:01:25 +0000 Subject: [PATCH] [Jim] middle click on a tab closes it. Fixes #1554 --- src/message_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index fd7eabb0f..debdc7121 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -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):