mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 13:04:13 +00:00
init actions
This commit is contained in:
parent
6b70606637
commit
8aab10c53e
14
src/main.cpp
14
src/main.cpp
@ -10,6 +10,20 @@ int main(
|
|||||||
APPLICATION_ID
|
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
|
// Launch browser component
|
||||||
return app->make_window_and_run<app::Browser>(
|
return app->make_window_and_run<app::Browser>(
|
||||||
argc,
|
argc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user