|
|
@ -3,22 +3,23 @@ |
|
|
|
|
|
|
|
|
|
|
|
int main( |
|
|
|
int main( |
|
|
|
int argc, |
|
|
|
int argc, |
|
|
|
char* argv[] |
|
|
|
char * argv[] |
|
|
|
) { |
|
|
|
) { |
|
|
|
// Init app
|
|
|
|
// Init app
|
|
|
|
auto app = Gtk::Application::create( |
|
|
|
auto app = Gtk::Application::create( |
|
|
|
APPLICATION_ID |
|
|
|
"io.github.yggverse.Yoda" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Init actions
|
|
|
|
// Init actions
|
|
|
|
app->add_action( |
|
|
|
app->add_action( |
|
|
|
"quit", |
|
|
|
"quit", |
|
|
|
sigc::mem_fun( |
|
|
|
sigc::mem_fun( |
|
|
|
*app, |
|
|
|
* app, |
|
|
|
&Gtk::Application::quit |
|
|
|
& Gtk::Application::quit |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Init accels
|
|
|
|
app->set_accel_for_action( |
|
|
|
app->set_accel_for_action( |
|
|
|
"app.quit", |
|
|
|
"app.quit", |
|
|
|
"<Primary>q" |
|
|
|
"<Primary>q" |
|
|
@ -27,6 +28,7 @@ int main( |
|
|
|
// Launch browser component
|
|
|
|
// Launch browser component
|
|
|
|
return app->make_window_and_run<app::Browser>( |
|
|
|
return app->make_window_and_run<app::Browser>( |
|
|
|
argc, |
|
|
|
argc, |
|
|
|
argv |
|
|
|
argv, |
|
|
|
|
|
|
|
app |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |