// bin/gr-parrilla.rs — Programador de parrilla musical G-Radio

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

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

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::parrilla::ventana_parrilla::construir_ventana_parrilla(app);
    });
    app.run()
}
