audrey/src/main.rs

29 lines
711 B
Rust
Raw Normal View History

2024-10-29 12:01:42 +00:00
mod application;
2024-10-29 13:02:29 +00:00
pub use application::Application;
pub mod ui;
2024-10-29 12:01:42 +00:00
use gtk::prelude::*;
2024-10-29 13:02:29 +00:00
use gtk::{gio, glib};
2024-10-29 10:46:58 +00:00
2024-10-29 10:37:15 +00:00
#[link(name = "audrey")]
#[link(name = "gcrypt")]
#[link(name = "json-glib-1.0")]
#[link(name = "mpv")]
2024-10-29 18:13:58 +00:00
#[link(name = "secret-1")]
2024-10-29 10:37:15 +00:00
#[link(name = "soup-3.0")]
2024-10-29 13:02:29 +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
}