Skip to content

Commit

Permalink
Fix accels deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Nov 3, 2018
1 parent ad81b73 commit 416a654
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace Ciano {
/**
* Create the window of this application through the class {@code Window} and show it. If user clicks
* <quit> or press <control + q> the window will be destroyed.
*
*
* @return {@code void}
*/
public override void activate () {
Expand All @@ -66,7 +66,8 @@ namespace Ciano {
});

add_action (quit_action);
add_accelerator ("<Control>q", "app.quit", null);
set_accels_for_action ("app.quit", {"<Ctrl>q"});
}
}
}
}

0 comments on commit 416a654

Please sign in to comment.