summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 20:55:20 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 20:55:20 +0000
commitef4179afb8e8c917c2fa355900fd30e24857c7db (patch)
treea4b59c416981f66018191d61324bce7635a84f42 /src/gui
parentefca18acf1e17be9932b375347ce95f733c2dc59 (diff)
downloadingen-ef4179afb8e8c917c2fa355900fd30e24857c7db.tar.gz
ingen-ef4179afb8e8c917c2fa355900fd30e24857c7db.tar.bz2
ingen-ef4179afb8e8c917c2fa355900fd30e24857c7db.zip
Fix non-canvas key bindings (alt-f for file and such).
Fix FlowCanvas::Canvas::canvas_event falsely returning 'true' (handled event) for all keypresses (not just recognized ones). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2519 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp4
-rw-r--r--src/gui/PatchWindow.cpp5
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 644f95f6..932b0ef9 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -540,13 +540,13 @@ PatchCanvas::canvas_event(GdkEvent* event)
case GDK_Delete:
destroy_selection();
ret = true;
- break;
+ break;
case GDK_e:
if (event->key.state == 0) {
_patch->set_editable(!_patch->get_editable());
ret = true;
}
- default: break;
+ default: break;
}
default: break;
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp
index 361e525a..84d86f2b 100644
--- a/src/gui/PatchWindow.cpp
+++ b/src/gui/PatchWindow.cpp
@@ -618,10 +618,7 @@ PatchWindow::on_hide()
bool
PatchWindow::on_event(GdkEvent* event)
{
- if (_view->canvas()->canvas_event(event))
- return true;
- else
- return Gtk::Window::on_event(event);
+ return (_view->canvas()->canvas_event(event)) ? true : Gtk::Window::on_event(event);
}