2024-10-29 12:01:42 +00:00
|
|
|
mod application;
|
|
|
|
use application::{Application};
|
|
|
|
|
|
|
|
use gtk::prelude::*;
|
|
|
|
use gtk::{glib, gio};
|
2024-10-29 10:46:58 +00:00
|
|
|
|
2024-10-29 10:37:15 +00:00
|
|
|
extern crate libsecret;
|
|
|
|
|
|
|
|
#[link(name = "audrey")]
|
|
|
|
#[link(name = "gcrypt")]
|
|
|
|
#[link(name = "json-glib-1.0")]
|
|
|
|
#[link(name = "mpv")]
|
|
|
|
#[link(name = "soup-3.0")]
|
2024-10-29 11:29:04 +00:00
|
|
|
extern "C" {
|
2024-10-29 10:37:15 +00:00
|
|
|
}
|
|
|
|
|
2024-10-29 12:01:42 +00:00
|
|
|
fn main() -> glib::ExitCode {
|
2024-10-29 10:46:58 +00:00
|
|
|
gio::resources_register_include!("audrey.gresource").expect("could not register resources");
|
|
|
|
|
2024-10-29 12:01:42 +00:00
|
|
|
gtk::disable_setlocale();
|
|
|
|
// bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
|
|
|
// bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
|
|
// textdomain (GETTEXT_PACKAGE);
|
|
|
|
// setlocale (LC_ALL, "");
|
|
|
|
// setlocale (LC_NUMERIC, "C.UTF-8");
|
|
|
|
let app = Application::new();
|
|
|
|
app.run()
|
2024-10-29 10:37:15 +00:00
|
|
|
}
|