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:
Pavel Baksy 2025-12-22 23:46:53 +01:00
parent c4480fc161
commit 977b78f5fe

View File

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