// bin/gr-pautaje.rs — Calendarizador de comerciales G-Radio

use gtk4 as gtk;
use glib;
use gtk::prelude::*;
use gtk::Application;

const APP_ID: &str = "com.gradio.pautaje";

fn main() -> glib::ExitCode {
    grpautaje::i18n::init(grpautaje::locale_from_config().as_deref());
    let app = Application::builder()
        .application_id(APP_ID)
        .build();
    app.connect_activate(|app| {
        if let Some(w) = app.active_window() { w.present(); return; }
        grpautaje::ui::ventana_principal::construir_ui(app);
    });
    app.run()
}
