graphmanager: fix typos detected by pre-commit

This commit is contained in:
Stéphane Cerveau 2024-01-05 11:21:12 +01:00
parent 9c8a578e05
commit b1ad0e958b
2 changed files with 4 additions and 4 deletions

View file

@ -492,7 +492,7 @@ impl GraphView {
private.id.set(id) private.id.set(id)
} }
/// Retrives the graphview id /// Retrieves the graphview id
/// ///
pub fn id(&self) -> u32 { pub fn id(&self) -> u32 {
let private = imp::GraphView::from_obj(self); let private = imp::GraphView::from_obj(self);
@ -544,7 +544,7 @@ impl GraphView {
let private = imp::GraphView::from_obj(self); let private = imp::GraphView::from_obj(self);
node.set_parent(self); node.set_parent(self);
// Place widgets in colums of 3, growing down // Place widgets in columns of 3, growing down
let x = if let Some(node_type) = node.node_type() { let x = if let Some(node_type) = node.node_type() {
match node_type { match node_type {
NodeType::Source => 20.0, NodeType::Source => 20.0,
@ -593,7 +593,7 @@ impl GraphView {
} }
node.unparent(); node.unparent();
} else { } else {
warn!("Tried to remove non-existant node (id={}) from graph", id); warn!("Tried to remove non-existent node (id={}) from graph", id);
} }
self.queue_draw(); self.queue_draw();
} }

View file

@ -48,7 +48,7 @@ impl PortDirection {
/// Port's presence /// Port's presence
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Copy)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Copy)]
pub enum PortPresence { pub enum PortPresence {
/// Can not be removed from his parent independantly /// Can not be removed from his parent independently
Always, Always,
/// Can be removed from a node /// Can be removed from a node
Sometimes, Sometimes,