From 8a541649ed60a758e721a60213a864186c170e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sat, 25 Dec 2021 11:33:32 +0100 Subject: [PATCH] message-media: Fix obsolete docs --- src/session/content/room_history/message_row/media.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/session/content/room_history/message_row/media.rs b/src/session/content/room_history/message_row/media.rs index 996f32d3..a7cbad5a 100644 --- a/src/session/content/room_history/message_row/media.rs +++ b/src/session/content/room_history/message_row/media.rs @@ -69,9 +69,9 @@ mod imp { #[derive(Debug, Default, CompositeTemplate)] #[template(resource = "/org/gnome/FractalNext/content-message-media.ui")] pub struct MessageMedia { - /// The intended display width of the full image. + /// The intended display width of the media. pub width: Cell, - /// The intended display height of the full image. + /// The intended display height of the media. pub height: Cell, /// The state of the media. pub state: Cell, @@ -229,7 +229,7 @@ mod imp { let width = if original_height > 0 && original_width > 0 { height * original_width / original_height } else { - // Get the natural width of the image data. + // Get the natural width of the media data. child.measure(gtk::Orientation::Horizontal, height).1 };