summary refs log tree commit diff
path: root/src/main.rs
blob: 4f4688ec8dc67ed80e229f30e4793db32417db0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use adw::prelude::GtkWindowExt;
use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentController};

use bowl::PostComposerModel;

const APPLICATION_ID: &str = "xyz.vikanezrimaya.kittybox.Bowl";

static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new(
    glib::GlibLoggerFormat::Plain,
    glib::GlibLoggerDomain::CrateTarget,
);

fn main() {
    log::set_logger(&GLIB_LOGGER).unwrap();
    log::set_max_level(log::LevelFilter::Debug);

    let app = RelmApp::new(APPLICATION_ID);
    app.run::<PostComposerModel>( () );
}