Update to a libadwaita app
This commit is contained in:
parent
cc3ad372e6
commit
ff13ff3c0e
|
@ -1,5 +1,4 @@
|
||||||
use adw::prelude::AdwApplicationWindowExt;
|
use adw::prelude::*;
|
||||||
use gtk::prelude::*;
|
|
||||||
use kifu_core::{CoreApp, CoreRequest, CoreResponse};
|
use kifu_core::{CoreApp, CoreRequest, CoreResponse};
|
||||||
use kifu_gtk::{
|
use kifu_gtk::{
|
||||||
perftrace,
|
perftrace,
|
||||||
|
@ -97,11 +96,13 @@ fn main() {
|
||||||
core: core.clone(),
|
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.present();
|
||||||
|
|
||||||
window.set_show_menubar(true);
|
|
||||||
|
|
||||||
gtk_rx.attach(None, {
|
gtk_rx.attach(None, {
|
||||||
let api = api.clone();
|
let api = api.clone();
|
||||||
move |message| {
|
move |message| {
|
||||||
|
|
Loading…
Reference in New Issue