upgrade gtkrs

This commit is contained in:
Ashley Wulber 2022-01-21 16:38:58 -05:00
parent 6b53c2cded
commit 57263e77c7
12 changed files with 159 additions and 254 deletions

View file

@ -44,15 +44,8 @@ impl WidgetImpl for PopoverContainerInner {
}
fn size_allocate(&self, _obj: &PopoverContainer, width: i32, height: i32, baseline: i32) {
self.child.size_allocate(
&gtk4::Allocation {
x: 0,
y: 0,
width,
height,
},
baseline,
);
self.child
.size_allocate(&gtk4::Allocation::new(0, 0, width, height), baseline);
self.popover.present();
}