[gnome-nibbles/arnaudb/wip/gtk4: 39/62] Adapt to GtkEventController API, part 2.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 39/62] Adapt to GtkEventController API, part 2.
- Date: Fri, 19 Jun 2020 14:55:18 +0000 (UTC)
commit 08444ca996e924643b1f566227ab14178fbfce15
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Jun 15 19:24:49 2020 +0200
Adapt to GtkEventController API, part 2.
src/preferences-dialog.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/preferences-dialog.vala b/src/preferences-dialog.vala
index 0c60a51..ab77329 100644
--- a/src/preferences-dialog.vala
+++ b/src/preferences-dialog.vala
@@ -52,8 +52,9 @@ private class PreferencesDialog : Window
construct
{
- key_controller = new EventControllerKey (this);
+ key_controller = new EventControllerKey ();
key_controller.key_pressed.connect (on_key_pressed);
+ ((Widget) this).add_controller (key_controller);
tree_views = new Gee.ArrayList<TreeView> ();
tree_views.add (tree_view_1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]