Commit 90c80896 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Return glib::ExitCode

parent 4010c866
......@@ -94,11 +94,11 @@ impl Application {
self.imp().window.get().and_then(|w| w.upgrade()).unwrap()
}
pub fn run() {
pub fn run() -> glib::ExitCode {
log::info!("GNOME Tour ({})", config::APP_ID);
log::info!("Version: {} ({})", config::VERSION, config::PROFILE);
log::info!("Datadir: {}", config::PKGDATADIR);
let app = Self::new();
gtk::prelude::ApplicationExtManual::run(&app);
app.run()
}
}
......@@ -9,7 +9,7 @@ mod widgets;
use application::Application;
use config::{GETTEXT_PACKAGE, LOCALEDIR};
fn main() {
fn main() -> glib::ExitCode {
pretty_env_logger::init();
// Prepare i18n
setlocale(LocaleCategory::LcAll, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment