[gnome-music/wip/mschraal/gtk4-v2: 13/56] window: Fix EventController for GTK4




commit b066f8e09be2c64e77ba04d6dd6f457dd435375f
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 c2b0032e9..33220c712 100644
--- a/data/ui/Window.ui
+++ b/data/ui/Window.ui
@@ -3,6 +3,11 @@
   <template class="Window" parent="GtkApplicationWindow">
     <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 type="titlebar">
       <object class="GtkStack" id="_headerbar_stack">
         <property name="transition-type">crossfade</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]