#include "main.hpp" #include "app/browser.hpp" #include "lib/database.hpp" int main( int argc, char * argv[] ) { // Init profile database const std::shared_ptr db( new lib::Database( "database.sqlite3" ) ); // Init app const Glib::RefPtr app = Gtk::Application::create( "io.github.yggverse.Yoda" ); app->add_action( "quit", sigc::mem_fun( * app, & Gtk::Application::quit ) ); // Init accels @TODO db settings app->set_accel_for_action( "win.tab_append", "t" ); app->set_accel_for_action( "win.tab_update", "r" ); app->set_accel_for_action( "win.debug", "i" ); app->set_accel_for_action( "app.quit", "q" ); // Launch browser component return app->make_window_and_run( argc, argv //app, //db ); }