parent
b58cd717b5
commit
8983f61558
2 changed files with 11 additions and 3 deletions
|
|
@ -0,0 +1 @@
|
||||||
|
edit/crop: Pre-select the portrait orientation for image that are taller than wide.
|
||||||
|
|
@ -206,8 +206,6 @@ mod imp {
|
||||||
obj.imp().asepect_ratio_orientation_changed();
|
obj.imp().asepect_ratio_orientation_changed();
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
self.asepect_ratio_orientation_changed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dispose(&self) {
|
fn dispose(&self) {
|
||||||
|
|
@ -215,7 +213,15 @@ mod imp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WidgetImpl for LpEditCrop {}
|
impl WidgetImpl for LpEditCrop {
|
||||||
|
fn root(&self) {
|
||||||
|
self.parent_root();
|
||||||
|
let obj = self.obj();
|
||||||
|
|
||||||
|
// Select correct orientation based on aspect ratio
|
||||||
|
obj.handle_error(self.apply_reset());
|
||||||
|
}
|
||||||
|
}
|
||||||
impl BinImpl for LpEditCrop {}
|
impl BinImpl for LpEditCrop {}
|
||||||
|
|
||||||
impl LpEditCrop {
|
impl LpEditCrop {
|
||||||
|
|
@ -281,6 +287,7 @@ mod imp {
|
||||||
} else {
|
} else {
|
||||||
LpOrientation::Landscape
|
LpOrientation::Landscape
|
||||||
};
|
};
|
||||||
|
dbg!("setting to", orientation);
|
||||||
let res = self
|
let res = self
|
||||||
.obj()
|
.obj()
|
||||||
.activate_action("edit-crop.orientation", Some(&orientation.to_variant()));
|
.activate_action("edit-crop.orientation", Some(&orientation.to_variant()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue