Update to a libadwaita app
This commit is contained in:
parent
cc3ad372e6
commit
ff13ff3c0e
|
@ -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| {
|
||||
|
|
Loading…
Reference in New Issue