// bin/gr-visor.rs — Visor de pautaje G-Radio

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

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

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::visor::ventana_visor::construir_ventana_visor(app);
    });
    app.run()
}
