use gettextrs::*;
use gtk::glib;
mod application;
mod config;
mod static_resources;
mod utils;
mod widgets;
use application::Application;
use config::{GETTEXT_PACKAGE, LOCALEDIR};
fn main() {
pretty_env_logger::init();
// Prepare i18n
setlocale(LocaleCategory::LcAll, "");
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);
glib::set_application_name(&gettext("Tour"));
glib::set_prgname(Some("Tour"));
gtk::init().expect("Unable to start GTK3");
#[cfg(feature = "video")]
gst::init().expect("Unable to start gst");
static_resources::init().expect("Failed to initialize the resource file.");
let app = Application::new();
app.run();
}
-
Christopher Davis authored
This commit upgrades our rust dependencies and ports Tour to libadwaita+GTK4. As part of porting we now use GtkPicture instead of GtkImage, and AdwClamps to hold pages in place. This port is part of https://gitlab.gnome.org/GNOME/Initiatives/-/issues/26 and handles https://gitlab.gnome.org/GNOME/Initiatives/-/issues/32 Fixes https://gitlab.gnome.org/GNOME/gnome-tour/-/issues/36
9302dbe4