mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-19 22:46:28 +00:00
app: Use the new PropertyExt interface from Graphview
This commit is contained in:
parent
17ecce9748
commit
f483b51c9e
2 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ use crate::ui as GPSUI;
|
||||||
|
|
||||||
use crate::{GPS_DEBUG, GPS_ERROR, GPS_INFO, GPS_TRACE, GPS_WARN};
|
use crate::{GPS_DEBUG, GPS_ERROR, GPS_INFO, GPS_TRACE, GPS_WARN};
|
||||||
|
|
||||||
use crate::graphmanager::{GraphView, PortDirection, PortPresence};
|
use crate::graphmanager::{GraphView, PortDirection, PortPresence, PropertyExt};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct GPSAppInner {
|
pub struct GPSAppInner {
|
||||||
|
@ -696,7 +696,7 @@ impl GPSApp {
|
||||||
|
|
||||||
pub fn element_property(&self, node_id: u32, property_name: &str) -> Option<String> {
|
pub fn element_property(&self, node_id: u32, property_name: &str) -> Option<String> {
|
||||||
let node = self.graphview.borrow().node(node_id).unwrap();
|
let node = self.graphview.borrow().node(node_id).unwrap();
|
||||||
node.property(property_name)
|
PropertyExt::property(&node, property_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear_graph(&self) {
|
fn clear_graph(&self) {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use crate::graphmanager::{GraphView, Node, NodeType, PortDirection};
|
use crate::graphmanager::{GraphView, Node, NodeType, PortDirection, PropertyExt};
|
||||||
use crate::logger;
|
use crate::logger;
|
||||||
use crate::ui::message as GPSMessage;
|
use crate::ui::message as GPSMessage;
|
||||||
use crate::GPS_INFO;
|
use crate::GPS_INFO;
|
||||||
|
|
Loading…
Reference in a new issue