image: Add rotation and auto rotate based on exif

This commit is contained in:
Sophie Herold 2022-11-03 17:40:06 +01:00
parent 3d6564377a
commit a2e6767584
10 changed files with 257 additions and 94 deletions

View file

@ -102,6 +102,10 @@ mod imp {
win.open_with();
});
klass.install_action("win.rotate-image", None, move |win, _, _| {
win.rotate_image();
});
klass.install_action("win.set-background", None, move |win, _, _| {
win.set_background();
});
@ -280,6 +284,10 @@ impl LpWindow {
}
}
fn rotate_image(&self) {
self.imp().image_view.rotate_image()
}
fn set_background(&self) {
let imp = self.imp();