[gnome-music/wip/mschraal/gtk4-v2: 15/55] window: Fix EventController for GTK4
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4-v2: 15/55] window: Fix EventController for GTK4
- Date: Sat, 22 May 2021 21:02:07 +0000 (UTC)
commit 60452198b352f23b259dccf7e04e89ab3b46259f
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Apr 11 20:34:47 2021 +0200
window: Fix EventController for GTK4
data/ui/Window.ui | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/Window.ui b/data/ui/Window.ui
index 566a5fdb6..6e793df4b 100644
--- a/data/ui/Window.ui
+++ b/data/ui/Window.ui
@@ -3,6 +3,11 @@
<template class="Window" parent="AdwApplicationWindow">
<property name="default-height">500</property>
<property name="default-width">300</property>
+ <child>
+ <object class="GtkEventControllerKey" id="_key_controller">
+ <signal name="key-pressed" handler="_on_key_press" swapped="no"/>
+ </object>
+ </child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
@@ -45,9 +50,4 @@
</object>
</child>
</template>
- <object class="GtkEventControllerKey" id="_key_controller">
- <property name="widget">Window</property>
- <property name="propagation-phase">capture</property>
- <signal name="key-pressed" handler="_on_key_press" swapped="no"/>
- </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]