mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement debug menu item
This commit is contained in:
parent
8aab10c53e
commit
cf64949986
5 changed files with 40 additions and 15 deletions
12
src/main.cpp
12
src/main.cpp
|
|
@ -3,22 +3,23 @@
|
|||
|
||||
int main(
|
||||
int argc,
|
||||
char* argv[]
|
||||
char * argv[]
|
||||
) {
|
||||
// Init app
|
||||
auto app = Gtk::Application::create(
|
||||
APPLICATION_ID
|
||||
"io.github.yggverse.Yoda"
|
||||
);
|
||||
|
||||
// Init actions
|
||||
app->add_action(
|
||||
"quit",
|
||||
sigc::mem_fun(
|
||||
*app,
|
||||
&Gtk::Application::quit
|
||||
* app,
|
||||
& Gtk::Application::quit
|
||||
)
|
||||
);
|
||||
|
||||
// Init accels
|
||||
app->set_accel_for_action(
|
||||
"app.quit",
|
||||
"<Primary>q"
|
||||
|
|
@ -27,6 +28,7 @@ int main(
|
|||
// Launch browser component
|
||||
return app->make_window_and_run<app::Browser>(
|
||||
argc,
|
||||
argv
|
||||
argv,
|
||||
app
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue