[geany/geany] b28e5d: Close documents in sidebar with middle mouse button

Pavel Roschin git-noreply at xxxxx
Sat Apr 26 19:02:38 UTC 2014


Branch:      refs/heads/master
Author:      Pavel Roschin <roshin at scriptumplus.ru>
Committer:   Pavel Roschin <roshin at scriptumplus.ru>
Date:        Sat, 26 Apr 2014 19:02:38 UTC
Commit:      b28e5db7ce72965cc5e45da41e2ab8d768b593c1
             https://github.com/geany/geany/commit/b28e5db7ce72965cc5e45da41e2ab8d768b593c1

Log Message:
-----------
Close documents in sidebar with middle mouse button


Modified Paths:
--------------
    src/sidebar.c

Modified: src/sidebar.c
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -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)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list