diff options
author | bl0ckeduser <[email protected]> | 2016-01-08 10:04:18 -0500 |
---|---|---|
committer | bl0ckeduser <[email protected]> | 2016-01-08 10:04:18 -0500 |
commit | ed977d25e487400f547997f95802d139e4fce26b (patch) | |
tree | 7c538cd754770abdf91a8a73116de5f85a66f367 | |
parent | 61800829da41036da5719b0e39e6f015cbd75f9a (diff) | |
download | caja-ed977d25e487400f547997f95802d139e4fce26b.tar.bz2 caja-ed977d25e487400f547997f95802d139e4fce26b.tar.xz |
Middle-click tab closing (#457)
-rw-r--r-- | src/caja-navigation-window-pane.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/caja-navigation-window-pane.c b/src/caja-navigation-window-pane.c index f7363115..6bfa72a5 100644 --- a/src/caja-navigation-window-pane.c +++ b/src/caja-navigation-window-pane.c @@ -537,6 +537,17 @@ notebook_button_press_cb (GtkWidget *widget, notebook_popup_menu_show (pane, event); return TRUE; } + else if (GDK_BUTTON_PRESS == event->type && 2 == event->button) + { + CajaWindowPane *wpane; + CajaWindowSlot *slot; + + wpane = CAJA_WINDOW_PANE (pane); + slot = wpane->active_slot; + caja_window_slot_close (slot); + + return FALSE; + } return FALSE; } |