diff options
author | David Robillard <d@drobilla.net> | 2013-01-13 17:55:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-13 17:55:50 +0000 |
commit | 9b5da6b16fb7dacada67db377beaa46a61fe0c22 (patch) | |
tree | cacb72d6e1d6aff44ac5f4967617a3281dad053b /src/gui | |
parent | 0cb9e2ad982390136a25dda96c88cd6cb40785f3 (diff) | |
download | machina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.tar.gz machina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.tar.bz2 machina-9b5da6b16fb7dacada67db377beaa46a61fe0c22.zip |
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4960 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/MachinaCanvas.cpp | 4 | ||||
-rw-r--r-- | src/gui/MachinaGUI.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index d4b57a1..1a95b1c 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -85,8 +85,8 @@ MachinaCanvas::node_clicked(NodeView* node, GdkEventButton* event) bool MachinaCanvas::on_event(GdkEvent* event) { - if (( event->type == GDK_BUTTON_RELEASE) - && ( event->button.button == 3) + if (event->type == GDK_BUTTON_RELEASE + && event->button.button == 3 && !(event->button.state & (GDK_CONTROL_MASK))) { action_create_node(event->button.x, event->button.y); diff --git a/src/gui/MachinaGUI.hpp b/src/gui/MachinaGUI.hpp index c5326d9..d71c556 100644 --- a/src/gui/MachinaGUI.hpp +++ b/src/gui/MachinaGUI.hpp @@ -47,7 +47,7 @@ class MachinaCanvas; class MachinaGUI { public: - MachinaGUI(SPtr<machina::Engine> engine); + explicit MachinaGUI(SPtr<machina::Engine> engine); ~MachinaGUI(); SPtr<MachinaCanvas> canvas() { return _canvas; } |