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

Return glib::ExitCode

parent 4010c866
...@@ -94,11 +94,11 @@ impl Application { ...@@ -94,11 +94,11 @@ impl Application {
self.imp().window.get().and_then(|w| w.upgrade()).unwrap() 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!("GNOME Tour ({})", config::APP_ID);
log::info!("Version: {} ({})", config::VERSION, config::PROFILE); log::info!("Version: {} ({})", config::VERSION, config::PROFILE);
log::info!("Datadir: {}", config::PKGDATADIR); log::info!("Datadir: {}", config::PKGDATADIR);
let app = Self::new(); let app = Self::new();
gtk::prelude::ApplicationExtManual::run(&app); app.run()
} }
} }
...@@ -9,7 +9,7 @@ mod widgets; ...@@ -9,7 +9,7 @@ mod widgets;
use application::Application; use application::Application;
use config::{GETTEXT_PACKAGE, LOCALEDIR}; use config::{GETTEXT_PACKAGE, LOCALEDIR};
fn main() { fn main() -> glib::ExitCode {
pretty_env_logger::init(); pretty_env_logger::init();
// Prepare i18n // Prepare i18n
setlocale(LocaleCategory::LcAll, ""); 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