mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update browser constructor api, prelude required entities only
This commit is contained in:
parent
77303d548e
commit
c27189f1ab
2 changed files with 45 additions and 10 deletions
16
src/main.rs
16
src/main.rs
|
|
@ -1,7 +1,15 @@
|
|||
#[path = "app/browser.rs"] mod browser;
|
||||
|
||||
use gtk::prelude::*;
|
||||
use gtk::{glib, Application};
|
||||
use gtk::prelude::{
|
||||
ApplicationExt,
|
||||
ApplicationExtManual,
|
||||
GtkWindowExt
|
||||
};
|
||||
|
||||
use gtk::{
|
||||
Application,
|
||||
glib
|
||||
};
|
||||
|
||||
fn main() -> glib::ExitCode
|
||||
{
|
||||
|
|
@ -13,7 +21,9 @@ fn main() -> glib::ExitCode
|
|||
|app|
|
||||
{
|
||||
browser::new(
|
||||
app
|
||||
app,
|
||||
640,
|
||||
480
|
||||
).present();
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue