Update to a libadwaita app

pull/66/head
Savanni D'Gerinel 2023-08-20 22:12:00 -04:00
parent cc3ad372e6
commit ff13ff3c0e
1 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,4 @@
use adw::prelude::AdwApplicationWindowExt;
use gtk::prelude::*;
use adw::prelude::*;
use kifu_core::{CoreApp, CoreRequest, CoreResponse};
use kifu_gtk::{
perftrace,
@ -97,11 +96,13 @@ fn main() {
core: core.clone(),
};
let window = adw::ApplicationWindow::new(app);
let window = adw::ApplicationWindow::builder()
.application(app)
.width_request(800)
.height_request(500)
.build();
window.present();
window.set_show_menubar(true);
gtk_rx.attach(None, {
let api = api.clone();
move |message| {