From 9b5da6b16fb7dacada67db377beaa46a61fe0c22 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 17:55:50 +0000 Subject: Lint. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4960 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaCanvas.cpp | 4 ++-- src/gui/MachinaGUI.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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 engine); + explicit MachinaGUI(SPtr engine); ~MachinaGUI(); SPtr canvas() { return _canvas; } -- cgit v1.2.1