diff options
author | David Robillard <d@drobilla.net> | 2020-12-15 18:01:43 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-15 18:01:43 +0100 |
commit | d00bc4de5b876e911a6a32590a340e8b48594479 (patch) | |
tree | e1bc874a4714d7519915259eaa68037bd53693cf | |
parent | c1ace3d7be3a747f5b7453c0c7f70d6735c038d3 (diff) | |
download | patchage-d00bc4de5b876e911a6a32590a340e8b48594479.tar.gz patchage-d00bc4de5b876e911a6a32590a340e8b48594479.tar.bz2 patchage-d00bc4de5b876e911a6a32590a340e8b48594479.zip |
Use modern GDK keysyms
-rw-r--r-- | src/Canvas.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 8b5168f..1de5269 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -42,6 +42,8 @@ PATCHAGE_DISABLE_FMT_WARNINGS #include <fmt/ostream.h> PATCHAGE_RESTORE_WARNINGS +#include <gdk/gdkkeysyms.h> + #include <cassert> #include <iosfwd> #include <set> @@ -302,7 +304,7 @@ disconnect_edge(GanvEdge* edge, void* data) bool Canvas::on_event(GdkEvent* ev) { - if (ev->type == GDK_KEY_PRESS && ev->key.keyval == GDK_Delete) { + if (ev->type == GDK_KEY_PRESS && ev->key.keyval == GDK_KEY_Delete) { for_each_selected_edge(disconnect_edge, this); clear_selection(); return true; |