mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use namespace
This commit is contained in:
parent
9b12642960
commit
135c03146a
1 changed files with 8 additions and 6 deletions
|
|
@ -1,17 +1,19 @@
|
||||||
|
use gtk::{Application, ApplicationWindow, Box, HeaderBar};
|
||||||
|
|
||||||
pub struct Browser {
|
pub struct Browser {
|
||||||
gtk: gtk::ApplicationWindow,
|
gtk: ApplicationWindow,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Browser {
|
impl Browser {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
application: >k::Application,
|
application: &Application,
|
||||||
titlebar: >k::HeaderBar,
|
titlebar: &HeaderBar,
|
||||||
child: >k::Box,
|
child: &Box,
|
||||||
default_width: i32,
|
default_width: i32,
|
||||||
default_height: i32,
|
default_height: i32,
|
||||||
) -> Browser {
|
) -> Browser {
|
||||||
Self {
|
Self {
|
||||||
gtk: gtk::ApplicationWindow::builder()
|
gtk: ApplicationWindow::builder()
|
||||||
.application(application)
|
.application(application)
|
||||||
.default_width(default_width)
|
.default_width(default_width)
|
||||||
.default_height(default_height)
|
.default_height(default_height)
|
||||||
|
|
@ -21,7 +23,7 @@ impl Browser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn gtk(&self) -> >k::ApplicationWindow {
|
pub fn gtk(&self) -> &ApplicationWindow {
|
||||||
&self.gtk
|
&self.gtk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue