Skip to content

Commit eb7fbfd

Browse files
authored
Application: Fix deprecated Gtk.Application.add_accelerator (#94)
1 parent 097e318 commit eb7fbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Eddy.Application : Gtk.Application {
6464

6565
var quit_action = new SimpleAction ("quit", null);
6666
add_action (quit_action);
67-
add_accelerator ("<Control>q", "app.quit", null);
67+
set_accels_for_action ("app.quit", {"<Control>q"});
6868
quit_action.activate.connect (() => {
6969
if (window != null) {
7070
window.close ();

0 commit comments

Comments
 (0)