mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 11:36:11 +08:00
Run rustfmt on the codebase
This commit is contained in:
@@ -62,11 +62,11 @@ fn draw(
|
||||
|
||||
cr.move_to(
|
||||
(from_alloc.x + from_alloc.width).into(),
|
||||
(from_alloc.y + (from_alloc.height / 2)).into()
|
||||
(from_alloc.y + (from_alloc.height / 2)).into(),
|
||||
);
|
||||
cr.line_to(
|
||||
to_alloc.x.into(),
|
||||
(to_alloc.y + (to_alloc.height / 2)).into()
|
||||
(to_alloc.y + (to_alloc.height / 2)).into(),
|
||||
);
|
||||
|
||||
cr.stroke();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
mod graph_view;
|
||||
mod pipewire_node;
|
||||
|
||||
pub use graph_view::GraphView;
|
||||
pub use pipewire_node::PipewireNode;
|
||||
pub use graph_view::GraphView;
|
||||
@@ -24,12 +24,14 @@ impl PipewireNode {
|
||||
}
|
||||
|
||||
pub fn add_ingoing_port(&mut self, id: u32, port: gtk::Button) {
|
||||
self.widget.attach(&port, 0, (self.ingoing_ports.len() + 1) as i32, 1, 1);
|
||||
self.widget
|
||||
.attach(&port, 0, (self.ingoing_ports.len() + 1) as i32, 1, 1);
|
||||
self.ingoing_ports.insert(id, port);
|
||||
}
|
||||
|
||||
pub fn add_outgoing_port(&mut self, id: u32, port: gtk::Button) {
|
||||
self.widget.attach(&port, 1, (self.outgoing_ports.len() + 1) as i32, 1, 1);
|
||||
self.widget
|
||||
.attach(&port, 1, (self.outgoing_ports.len() + 1) as i32, 1, 1);
|
||||
self.outgoing_ports.insert(id, port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user