shortcuts-dialog: Port to AdwShortcutsDialog

Changed help-overlay.ui to add adwaita shortcuts dialog and loaded that
xml in window.rs also incremented libadwaita version.

Fixes #521
This commit is contained in:
Abhinandan Thakur 2025-12-28 17:00:14 +05:30 • committed by Sophie Herold
parent 538abfbbdf
commit a50212f741
9 changed files with 291 additions and 354 deletions

View file

@ -141,7 +141,7 @@ mod imp {
klass.add_binding_action(
gdk::Key::question,
gdk::ModifierType::CONTROL_MASK,
"win.show-help-overlay",
"app.shortcuts",
);
// Set up actions

View file

@ -48,7 +48,7 @@
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Image Viewer</attribute>

View file

@ -88,7 +88,7 @@ mod imp {
klass.add_binding_action(
gdk::Key::question,
gdk::ModifierType::CONTROL_MASK,
"win.show-help-overlay",
"app.shortcts",
);
WindowAction::init_actions_and_bindings(klass);