image/scrollable: Add non-nullable adj getters
Somehow they are not automatically generated anymore with new gtk-rs version.
This commit is contained in:
parent
0ed7036098
commit
6a4c1c61d7
3 changed files with 16 additions and 16 deletions
|
|
@ -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:?}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue