chore: Sync with Relm4 new-approach branch

This commit is contained in:
Michael Aaron Murphy 2022-01-31 15:55:55 +01:00
parent c25812a45b
commit 3e4a00a8d8
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
12 changed files with 123 additions and 463 deletions

View file

@ -6,12 +6,12 @@ extern crate cosmic_component_system as ccs;
mod components;
use self::components::App;
use ccs::{AppRunner, Component};
use ccs::*;
fn main() {
gtk4::builders::ApplicationBuilder::new()
gtk::builders::ApplicationBuilder::new()
.application_id("org.pop.CosmicComponentExample")
.cosmic_run(|app| {
App::init(app);
.launch(|_app, window| {
App::init().launch_stateful(window);
});
}