[beast: 29/49] BEAST: allow note/event movements with shift+alt+button1
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 29/49] BEAST: allow note/event movements with shift+alt+button1
- Date: Wed, 1 Jul 2015 11:31:32 +0000 (UTC)
commit 713319943b3e03642e3dcdcb41ff149adfc00dbc
Author: Tim Janik <timj gnu org>
Date: Tue Jun 23 18:26:24 2015 +0200
BEAST: allow note/event movements with shift+alt+button1
beast-gtk/bsteventrollctrl.cc | 3 +++
beast-gtk/bstpianorollctrl.cc | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/beast-gtk/bsteventrollctrl.cc b/beast-gtk/bsteventrollctrl.cc
index 30a4e30..9d28529 100644
--- a/beast-gtk/bsteventrollctrl.cc
+++ b/beast-gtk/bsteventrollctrl.cc
@@ -187,6 +187,9 @@ event_canvas_button_tool (BstEventRollController *self,
guint button,
guint have_object)
{
+ GdkEvent *event = gtk_get_current_event ();
+ if (bst_mouse_button_move (event))
+ return BST_COMMON_ROLL_TOOL_MOVE;
switch (self->canvas_rtools->action_id | /* user selected tool */
(have_object ? HAVE_OBJECT : 0))
{
diff --git a/beast-gtk/bstpianorollctrl.cc b/beast-gtk/bstpianorollctrl.cc
index b3327ff..2fa02a2 100644
--- a/beast-gtk/bstpianorollctrl.cc
+++ b/beast-gtk/bstpianorollctrl.cc
@@ -270,6 +270,9 @@ piano_canvas_button_tool (BstPianoRollController *self,
guint button,
guint have_object)
{
+ GdkEvent *event = gtk_get_current_event ();
+ if (bst_mouse_button_move (event))
+ return BST_COMMON_ROLL_TOOL_MOVE;
switch (self->canvas_rtools->action_id | /* user selected tool */
(have_object ? HAVE_OBJECT : 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]