From d00bc4de5b876e911a6a32590a340e8b48594479 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 Dec 2020 18:01:43 +0100 Subject: Use modern GDK keysyms --- src/Canvas.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 PATCHAGE_RESTORE_WARNINGS +#include + #include #include #include @@ -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; -- cgit v1.2.1