[gnome-font-viewer/wip/cdavis/code-modernization] window: Add quit shortcut



commit 2daf87e441415c2e168f7666cef64a8b2f82ae8b
Author: Christopher Davis <christopherdavis gnome org>
Date:   Thu Oct 13 20:06:33 2022 -0400

    window: Add quit shortcut

 src/font-view-window.ui | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/src/font-view-window.ui b/src/font-view-window.ui
index 2e6f385..34b8d0b 100644
--- a/src/font-view-window.ui
+++ b/src/font-view-window.ui
@@ -6,6 +6,17 @@
     <property name="default-height">600</property>
     <property name="width-request">360</property>
     <property name="height-request">294</property>
+    <child>
+      <object class="GtkShortcutController">
+        <property name="scope">managed</property>
+        <child>
+          <object class="GtkShortcut">
+            <property name="trigger">&lt;Control&gt;Q</property>
+            <property name="action">action(app.quit)</property>
+          </object>
+        </child>
+      </object>
+    </child>
     <property name="content">
       <object class="AdwLeaflet" id="leaflet">
         <property name="can-unfold">False</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]