Skip to content

Commit 75b167a

Browse files
committed
Port to Adw.ShortcutsDialog
1 parent 54c3e6a commit 75b167a

File tree

5 files changed

+24
-32
lines changed

5 files changed

+24
-32
lines changed

data/gtk/help-overlay.blp

Lines changed: 0 additions & 29 deletions
This file was deleted.

data/high-tide.gresource.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<file>style-dark.css</file>
66
<file preprocess="xml-stripblanks">ui/window.ui</file>
77
<file preprocess="xml-stripblanks">ui/login.ui</file>
8-
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
8+
<file preprocess="xml-stripblanks">shortcuts-dialog.ui</file>
99
<file preprocess="xml-stripblanks">ui/preferences.ui</file>
1010
<file preprocess="xml-stripblanks">ui/new_playlist.ui</file>
1111
<file preprocess="xml-stripblanks">ui/detailed_track_listing.ui</file>

data/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blueprints = custom_target('blueprints',
3131
'ui/detailed_track_listing.blp',
3232
'ui/search_filter.blp',
3333
'ui/card_template.blp',
34-
'gtk/help-overlay.blp',
34+
'shortcuts-dialog.blp',
3535
),
3636
output: '.',
3737
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],

data/shortcuts-dialog.blp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using Gtk 4.0;
2+
using Adw 1;
3+
4+
Adw.ShortcutsDialog shortcuts_dialog {
5+
Adw.ShortcutsSection {
6+
Adw.ShortcutsItem {
7+
title: C_("shortcut window", "Show Shortcuts");
8+
action-name: 'app.shortcuts';
9+
}
10+
11+
Adw.ShortcutsItem {
12+
title: C_("shortcut window", "Edit preferences");
13+
action-name: 'app.preferences';
14+
}
15+
16+
Adw.ShortcutsItem {
17+
title: C_("shortcut window", "Quit");
18+
action-name: 'app.quit';
19+
}
20+
}
21+
}

data/ui/pages_ui/page_template.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ menu primary_menu {
6666

6767
item {
6868
label: _("_Keyboard Shortcuts");
69-
action: "win.show-help-overlay";
69+
action: "app.shortcuts";
7070
}
7171

7272
item {

0 commit comments

Comments
 (0)