mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
give name to gobject
This commit is contained in:
parent
6911559915
commit
2f6059db2f
@ -70,7 +70,7 @@ impl Page {
|
|||||||
|
|
||||||
let widget = Rc::new(Widget::new(
|
let widget = Rc::new(Widget::new(
|
||||||
&id,
|
&id,
|
||||||
&navigation.widget.gobject,
|
&navigation.widget.g_box,
|
||||||
&content.g_box,
|
&content.g_box,
|
||||||
&input.widget.clamp,
|
&input.widget.clamp,
|
||||||
));
|
));
|
||||||
|
@ -7,7 +7,7 @@ const MARGIN: i32 = 6;
|
|||||||
const SPACING: i32 = 6;
|
const SPACING: i32 = 6;
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
pub gobject: Box,
|
pub g_box: Box,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Widget {
|
impl Widget {
|
||||||
@ -19,7 +19,7 @@ impl Widget {
|
|||||||
request: &impl IsA<gtk::Widget>,
|
request: &impl IsA<gtk::Widget>,
|
||||||
bookmark: &impl IsA<gtk::Widget>,
|
bookmark: &impl IsA<gtk::Widget>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let gobject = Box::builder()
|
let g_box = Box::builder()
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.spacing(SPACING)
|
.spacing(SPACING)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
@ -27,12 +27,12 @@ impl Widget {
|
|||||||
.margin_bottom(MARGIN)
|
.margin_bottom(MARGIN)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
gobject.append(base);
|
g_box.append(base);
|
||||||
gobject.append(history);
|
g_box.append(history);
|
||||||
gobject.append(reload);
|
g_box.append(reload);
|
||||||
gobject.append(request);
|
g_box.append(request);
|
||||||
gobject.append(bookmark);
|
g_box.append(bookmark);
|
||||||
|
|
||||||
Self { gobject }
|
Self { g_box }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user