image: Add rotation and auto rotate based on exif
This commit is contained in:
parent
3d6564377a
commit
a2e6767584
10 changed files with 257 additions and 94 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue