diff options
-rw-r--r-- | pluma/pluma-notebook.c | 2 | ||||
-rw-r--r-- | pluma/pluma-window.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c index ea9ac6b2..d2b35d25 100644 --- a/pluma/pluma-notebook.c +++ b/pluma/pluma-notebook.c @@ -614,7 +614,7 @@ button_press_cb (PlumaNotebook *notebook, NULL); } else if ((event->type == GDK_BUTTON_PRESS) && - (event->button == 3)) + (event->button == 3 || event->button == 2)) { if (tab_clicked == -1) { diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c index 0126ec30..8430443d 100644 --- a/pluma/pluma-window.c +++ b/pluma/pluma-window.c @@ -3434,6 +3434,13 @@ notebook_button_press_event (GtkNotebook *notebook, { return show_notebook_popup_menu (notebook, window, event); } + else if (GDK_BUTTON_PRESS == event->type && 2 == event->button) + { + GtkWidget *tab; + tab = GTK_WIDGET (pluma_window_get_active_tab (window)); + notebook_tab_close_request (notebook, tab, window); + return FALSE; + } return FALSE; } |