image/scrollable: Add non-nullable adj getters

Somehow they are not automatically generated anymore with new gtk-rs
version.
This commit is contained in:
Sophie Herold 2024-02-05 16:29:35 +01:00
parent 0ed7036098
commit 6a4c1c61d7
3 changed files with 16 additions and 16 deletions

View file

@ -33,10 +33,10 @@ impl LpImage {
let (adjustment, max) = match direction {
gtk::PanDirection::Left | gtk::PanDirection::Right => {
(self.hadjustment(), imp.max_hadjustment_value())
(self.hadj(), imp.max_hadjustment_value())
}
gtk::PanDirection::Up | gtk::PanDirection::Down => {
(self.vadjustment(), imp.max_vadjustment_value())
(self.vadj(), imp.max_vadjustment_value())
}
_ => {
log::error!("Unknown pan direction {direction:?}");