Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
*/

public class Onboarding.App : Gtk.Application {
public const string ACTION_PREFIX = "app.";
public const string ACTION_QUIT = "action-quit";

private const ActionEntry[] ACTION_ENTRIES = {
{ ACTION_QUIT, quit }
};

construct {
application_id = "io.elementary.onboarding";
flags = ApplicationFlags.FLAGS_NONE;
Expand All @@ -18,6 +25,9 @@ public class Onboarding.App : Gtk.Application {

Granite.init ();

add_action_entries (ACTION_ENTRIES, this);
set_accels_for_action (ACTION_PREFIX + ACTION_QUIT, {"<Ctrl>Q"});

var granite_settings = Granite.Settings.get_default ();
var gtk_settings = Gtk.Settings.get_default ();

Expand Down