mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 11:36:11 +08:00
pipewire connection: Reconnection to PipeWire server
This commit is contained in:
committed by
Tom Wagner
parent
f0da839383
commit
94323510aa
@@ -796,6 +796,14 @@ impl GraphView {
|
||||
self.queue_draw();
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
self.imp().links.borrow_mut().clear();
|
||||
for (node, _) in self.imp().nodes.borrow_mut().drain() {
|
||||
node.unparent();
|
||||
}
|
||||
self.queue_draw();
|
||||
}
|
||||
|
||||
/// Get the position of the specified node inside the graphview.
|
||||
///
|
||||
/// The returned position is in canvas-space (non-zoomed, (0, 0) fixed in the middle of the canvas).
|
||||
|
||||
Reference in New Issue
Block a user