PHP-GTK Client for Gemini Protocol
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

#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
3 months ago
auto app = Gtk::Application::create(
"io.github.yggverse.Yoda"
);
3 months ago
// Init actions
app->add_action(
"quit",
sigc::mem_fun(
* app,
& Gtk::Application::quit
3 months ago
)
);
// Init accels
3 months ago
app->set_accel_for_action(
"app.quit",
"<Primary>q"
);
// Launch browser component
3 months ago
return app->make_window_and_run<app::Browser>(
argc,
argv,
app
);
}