// bin/gr-botonera.rs — Botonera de efectos G-Radio

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

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

fn main() -> glib::ExitCode {
    grpautaje::i18n::init(grpautaje::locale_from_config().as_deref());
    gst::init().expect("GStreamer init falló");
    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::botonera::ventana_botonera::construir_ventana_botonera(app);
    });
    app.run()
}
