diff --git a/src/manager.vala b/src/manager.vala index 5099b2731658f205d058a15a8c9d4935cafb1b5d..de0c30c20512d338c1ce12d129620e8d0eb66d7b 100644 --- a/src/manager.vala +++ b/src/manager.vala @@ -46,6 +46,11 @@ namespace Pamac { msg.destroy (); } else { manager_window = new ManagerWindow (this); + var action = new SimpleAction ("quit", null); + action.activate.connect (() => {this.quit ();}); + this.add_action (action); + string[] accels = {"<Control>Q", "<Control>W"}; + this.set_accels_for_action ("app.quit", accels); } } diff --git a/src/updater.vala b/src/updater.vala index 7c8e101a9d8f020f4cde65d45b263057e0b85f9f..05a547a7b706cd00252a548d191a15f311eb3091 100644 --- a/src/updater.vala +++ b/src/updater.vala @@ -46,6 +46,11 @@ namespace Pamac { msg.destroy (); } else { updater_window = new UpdaterWindow (this); + var action = new SimpleAction ("quit", null); + action.activate.connect (() => {this.quit ();}); + this.add_action (action); + string[] accels = {"<Control>Q", "<Control>W"}; + this.set_accels_for_action ("app.quit", accels); } }