mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-21 16:41:03 +00:00
app: display node properties on double-clicked
This commit is contained in:
parent
a5767b21fe
commit
3f75581d60
1 changed files with 13 additions and 0 deletions
13
src/app.rs
13
src/app.rs
|
@ -786,6 +786,19 @@ impl GPSApp {
|
|||
None
|
||||
}),
|
||||
);
|
||||
let app_weak = self.downgrade();
|
||||
self.graphview.borrow().connect_local(
|
||||
"node-double-clicked",
|
||||
false,
|
||||
glib::clone!(@weak application => @default-return None, move |values: &[Value]| {
|
||||
let app = upgrade_weak!(app_weak, None);
|
||||
let node_id = values[1].get::<u32>().expect("node id args[1]");
|
||||
GPS_TRACE!("Node double clicked id={}", node_id);
|
||||
let node = app.graphview.borrow().node(node_id).unwrap();
|
||||
GPSUI::properties::display_plugin_properties(&app, &node.name(), node_id);
|
||||
None
|
||||
}),
|
||||
);
|
||||
|
||||
// Setup the favorite list
|
||||
GPSUI::elements::setup_favorite_list(self);
|
||||
|
|
Loading…
Reference in a new issue