mirror of https://github.com/YGGverse/Yoda.git
phpcomposergemini-protocolgeminismallwebaltwebgtkphp-gtkgemini-clientyoda-browserphp-cppgemini-browseryodagtk3browser
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
695 B
40 lines
695 B
#include "main.hpp" |
|
#include "app/browser.hpp" |
|
#include "lib/database.hpp" |
|
|
|
int main( |
|
int argc, |
|
char * argv[] |
|
) { |
|
// Init profile |
|
auto database = lib::Database( |
|
"database.sqlite3" |
|
); |
|
|
|
// Init app |
|
auto app = Gtk::Application::create( |
|
"io.github.yggverse.Yoda" |
|
); |
|
|
|
// Init actions |
|
app->add_action( |
|
"quit", |
|
sigc::mem_fun( |
|
* app, |
|
& Gtk::Application::quit |
|
) |
|
); |
|
|
|
// Init accels |
|
app->set_accel_for_action( |
|
"app.quit", |
|
"<Primary>q" |
|
); |
|
|
|
// Launch browser component |
|
return app->make_window_and_run<app::Browser>( |
|
argc, |
|
argv, |
|
app |
|
); |
|
} |