mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-19 22:46:28 +00:00
graphmanager: add API to change port name.
This commit is contained in:
parent
a21350b4a0
commit
7db3b333ac
1 changed files with 7 additions and 0 deletions
|
@ -186,6 +186,13 @@ impl Port {
|
|||
private.label.text().to_string()
|
||||
}
|
||||
|
||||
/// Set the port name
|
||||
///
|
||||
pub fn set_name(&self, name: &str) {
|
||||
let private = imp::Port::from_instance(self);
|
||||
private.label.set_text(name);
|
||||
}
|
||||
|
||||
/// Retrieves the port direction
|
||||
///
|
||||
pub fn direction(&self) -> PortDirection {
|
||||
|
|
Loading…
Reference in a new issue