mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init actions
This commit is contained in:
parent
6b70606637
commit
8aab10c53e
1 changed files with 14 additions and 0 deletions
14
src/main.cpp
14
src/main.cpp
|
|
@ -10,6 +10,20 @@ int main(
|
|||
APPLICATION_ID
|
||||
);
|
||||
|
||||
// Init actions
|
||||
app->add_action(
|
||||
"quit",
|
||||
sigc::mem_fun(
|
||||
*app,
|
||||
&Gtk::Application::quit
|
||||
)
|
||||
);
|
||||
|
||||
app->set_accel_for_action(
|
||||
"app.quit",
|
||||
"<Primary>q"
|
||||
);
|
||||
|
||||
// Launch browser component
|
||||
return app->make_window_and_run<app::Browser>(
|
||||
argc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue