activate gtk before build children widgets, add browser pointer to the app struct

This commit is contained in:
yggverse 2024-10-03 15:38:34 +03:00
parent 2d59115c7e
commit b6fa1016f6
3 changed files with 40 additions and 68 deletions

View file

@ -26,6 +26,9 @@ fn main() -> ExitCode {
Err(error) => panic!("Failed to connect profile database: {error}"),
};
// Start application
App::new(profile_database_connection).activate().run()
// Init GTK, start application
match gtk::init() {
Ok(_) => App::new(profile_database_connection).activate().run(),
Err(_) => ExitCode::FAILURE,
}
}