image: Use macro for object properties

This commit is contained in:
Sophie Herold 2023-11-29 01:49:14 +01:00
parent 6594b2caf0
commit 55811a2bb7
6 changed files with 166 additions and 278 deletions

View file

@ -301,7 +301,7 @@ impl LpPropertiesView {
}
#[template_callback]
fn image_size(&self, _image_size: Option<glib::Variant>) -> String {
fn image_size(&self, _image_size: bool) -> String {
if let Some(image) = self.image() {
match image.dimension_details() {
ImageDimensionDetails::Svg(string) => string,