Skip to content

Commit

Permalink
Close documents in sidebar with middle mouse button
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptum committed Apr 26, 2014
1 parent b3b6d4e commit b28e5db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sidebar.c
Expand Up @@ -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)
Expand Down

0 comments on commit b28e5db

Please sign in to comment.