Skip to content

Commit 8422d15

Browse files
authored
Add accels to quit (#111)
1 parent 263f2d2 commit 8422d15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Application.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public class Badger.Application : Gtk.Application {
3636
Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
3737
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
3838
Intl.textdomain (GETTEXT_PACKAGE);
39+
40+
var quit_action = new SimpleAction ("quit", null);
41+
add_action (quit_action);
42+
set_accels_for_action ("app.quit", {"<Control>q"});
43+
quit_action.activate.connect (quit);
3944
}
4045

4146
protected override void activate () {

0 commit comments

Comments
 (0)