Fix shortcuts dialog using correct GTK types

Change from AdwShortcuts* to GtkShortcuts* widgets.
Libadwaita doesn't provide shortcuts widgets, these are from GTK.
This commit is contained in:
vesp 2025-12-22 23:46:53 +01:00
parent 0655fb1d38
commit 2fda88d6f7

View File

@ -1,20 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<object class="AdwShortcutsDialog" id="shortcuts_dialog"> <object class="GtkShortcutsWindow" id="shortcuts_dialog">
<property name="modal">1</property>
<child> <child>
<object class="AdwShortcutsSection"> <object class="GtkShortcutsSection">
<property name="title" translatable="yes">Shortcuts</property> <property name="section-name">shortcuts</property>
<property name="max-height">10</property>
<child> <child>
<object class="AdwShortcutsGroup"> <object class="GtkShortcutsGroup">
<property name="title" translatable="yes" context="shortcut window">Tabs</property> <property name="title" translatable="yes" context="shortcut window">Tabs</property>
<child> <child>
<object class="AdwShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">New Tab</property> <property name="title" translatable="yes" context="shortcut window">New Tab</property>
<property name="action-name">win.new-tab</property> <property name="action-name">win.new-tab</property>
</object> </object>
</child> </child>
<child> <child>
<object class="AdwShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Close Tab</property> <property name="title" translatable="yes" context="shortcut window">Close Tab</property>
<property name="action-name">win.close-tab</property> <property name="action-name">win.close-tab</property>
</object> </object>
@ -22,10 +24,10 @@
</object> </object>
</child> </child>
<child> <child>
<object class="AdwShortcutsGroup"> <object class="GtkShortcutsGroup">
<property name="title" translatable="yes" context="shortcut window">Requests</property> <property name="title" translatable="yes" context="shortcut window">Requests</property>
<child> <child>
<object class="AdwShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Save Request</property> <property name="title" translatable="yes" context="shortcut window">Save Request</property>
<property name="action-name">win.save-request</property> <property name="action-name">win.save-request</property>
</object> </object>
@ -33,16 +35,16 @@
</object> </object>
</child> </child>
<child> <child>
<object class="AdwShortcutsGroup"> <object class="GtkShortcutsGroup">
<property name="title" translatable="yes" context="shortcut window">General</property> <property name="title" translatable="yes" context="shortcut window">General</property>
<child> <child>
<object class="AdwShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property> <property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
<property name="action-name">win.show-help-overlay</property> <property name="action-name">win.show-help-overlay</property>
</object> </object>
</child> </child>
<child> <child>
<object class="AdwShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Quit</property> <property name="title" translatable="yes" context="shortcut window">Quit</property>
<property name="action-name">app.quit</property> <property name="action-name">app.quit</property>
</object> </object>