feat!(ccs): Replace run function with AppRunner trait
This commit is contained in:
parent
52df3570ec
commit
1ac913d5c4
3 changed files with 30 additions and 14 deletions
|
|
@ -6,10 +6,12 @@ extern crate cosmic_component_system as ccs;
|
|||
mod components;
|
||||
|
||||
use self::components::App;
|
||||
use ccs::Component;
|
||||
use ccs::{AppRunner, Component};
|
||||
|
||||
fn main() {
|
||||
ccs::run(|app| {
|
||||
App::default().register(app);
|
||||
});
|
||||
gtk4::builders::ApplicationBuilder::new()
|
||||
.application_id("org.pop.CosmicComponentExample")
|
||||
.cosmic_run(|app| {
|
||||
App::default().register(app);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue