From b28e5db7ce72965cc5e45da41e2ab8d768b593c1 Mon Sep 17 00:00:00 2001 From: Pavel Roschin Date: Sat, 28 Sep 2013 15:56:35 +0400 Subject: [PATCH] Close documents in sidebar with middle mouse button --- src/sidebar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sidebar.c b/src/sidebar.c index 2431c3635..216439584 100644 --- a/src/sidebar.c +++ b/src/sidebar.c @@ -994,6 +994,11 @@ static gboolean sidebar_button_press_cb(GtkWidget *widget, GdkEventButton *event else handled = taglist_go_to_selection(selection, 0, event->state); } + else if (event->button == 2) + { + if (widget == tv.tree_openfiles) + on_openfiles_document_action(NULL, GINT_TO_POINTER(OPENFILES_ACTION_REMOVE)); + } else if (event->button == 3) { if (widget == tv.tree_openfiles) -- 2.11.4.GIT