code: Fix typos

This commit is contained in:
Sophie Herold 2023-11-30 21:58:26 +01:00
parent 3cd96436f3
commit 5b3ad7c257
4 changed files with 6 additions and 6 deletions

View file

@ -67,7 +67,7 @@ pub enum DecoderUpdate {
Redraw, Redraw,
/// Start animation /// Start animation
Animated, Animated,
/// And error occured during decoding /// And error occurred during decoding
Error(anyhow::Error), Error(anyhow::Error),
} }
@ -80,7 +80,7 @@ impl UpdateSender {
} }
} }
/// Send occuring errors to renderer /// Send occurring errors to renderer
pub fn spawn_error_handled<F>(&self, f: F) -> glib::JoinHandle<()> pub fn spawn_error_handled<F>(&self, f: F) -> glib::JoinHandle<()>
where where
F: std::future::Future<Output = Result<(), glycin::Error>> + Send + 'static, F: std::future::Future<Output = Result<(), glycin::Error>> + Send + 'static,

View file

@ -108,7 +108,7 @@ impl Tile {
return; return;
} }
// TODO: do not clip outer bounderies of the image // TODO: do not clip outer boundaries of the image
snapshot.push_clip(&area); snapshot.push_clip(&area);
// TODO: do not clip outer boundaries of the image // TODO: do not clip outer boundaries of the image
if let Some(background_color) = &options.background_color { if let Some(background_color) = &options.background_color {
@ -465,7 +465,7 @@ impl Tiling {
/// Returns relevant tiles /// Returns relevant tiles
/// ///
/// This gives what tiles are needed for convering the `preload_area`. /// This gives what tiles are needed for covering the `preload_area`.
/// Decoders use the [`TileInstructions`] to know what they have to render. /// Decoders use the [`TileInstructions`] to know what they have to render.
pub fn relevant_tiles(&self, preload_area: &graphene::Rect) -> Vec<TileInstructions> { pub fn relevant_tiles(&self, preload_area: &graphene::Rect) -> Vec<TileInstructions> {
let original_width = self.scaled_dimensions().0 as f32; let original_width = self.scaled_dimensions().0 as f32;

View file

@ -128,7 +128,7 @@ mod imp {
self.parent_constructed(); self.parent_constructed();
// Manually mange widget layout, see `WidgetImpl` for details // Manually manage widget layout, see `WidgetImpl` for details
obj.set_layout_manager(None::<gtk::LayoutManager>); obj.set_layout_manager(None::<gtk::LayoutManager>);
self.sliding_view.connect_current_page_notify( self.sliding_view.connect_current_page_notify(

View file

@ -93,7 +93,7 @@ impl From<&str> for PageAlignment {
"left" => (HAlignment::Left, VAlignment::Middle), "left" => (HAlignment::Left, VAlignment::Middle),
"right" => (HAlignment::Right, VAlignment::Middle), "right" => (HAlignment::Right, VAlignment::Middle),
pos => { pos => {
log::error!("Unkown alignment '{pos}'"); log::error!("Unknown alignment '{pos}'");
(HAlignment::default(), VAlignment::default()) (HAlignment::default(), VAlignment::default())
} }
}; };