SlidingView: Stop using gtk_widget_get_allocation
It got deprecated. Hopefully "width" does what we need.
This commit is contained in:
parent
0bdc6192ab
commit
47cb0e0acb
1 changed files with 1 additions and 3 deletions
|
|
@ -276,9 +276,7 @@ mod imp {
|
||||||
|
|
||||||
fn distance(&self) -> f64 {
|
fn distance(&self) -> f64 {
|
||||||
let obj = self.obj();
|
let obj = self.obj();
|
||||||
// TODO: Fix deprecation
|
let width = obj.width();
|
||||||
#[allow(deprecated)]
|
|
||||||
let width = obj.allocation().width();
|
|
||||||
|
|
||||||
width as f64 + self.page_spacing(width) as f64
|
width as f64 + self.page_spacing(width) as f64
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue