diff --git a/src/ui/graph/node.rs b/src/ui/graph/node.rs index 54d71c6..a3f1afb 100644 --- a/src/ui/graph/node.rs +++ b/src/ui/graph/node.rs @@ -85,6 +85,9 @@ mod imp { fn constructed(&self) { self.parent_constructed(); + // Force left-to-right direction for the ports grid to avoid messed up UI when defaulting to right-to-left + self.port_grid.set_direction(gtk::TextDirection::Ltr); + // Display a grab cursor when the mouse is over the label so the user knows the node can be dragged. self.node_name .set_cursor(gtk::gdk::Cursor::from_name("grab", None).as_ref()); diff --git a/src/ui/graph/port.rs b/src/ui/graph/port.rs index b79e4d7..13a5d9b 100644 --- a/src/ui/graph/port.rs +++ b/src/ui/graph/port.rs @@ -101,6 +101,9 @@ mod imp { fn constructed(&self) { self.parent_constructed(); + // Force left-to-right direction for the ports grid to avoid messed up UI when defaulting to right-to-left + self.obj().set_direction(gtk::TextDirection::Ltr); + // Display a grab cursor when the mouse is over the port so the user knows it can be dragged to another port. self.obj() .set_cursor(gtk::gdk::Cursor::from_name("grab", None).as_ref());