mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-24 01:50:59 +00:00
graphview: update graph on drag end
Allow to save the graph on drag end
This commit is contained in:
parent
4198b99b83
commit
b1f581c2fd
1 changed files with 8 additions and 0 deletions
|
@ -164,6 +164,14 @@ mod imp {
|
|||
);
|
||||
});
|
||||
|
||||
drag_controller.connect_drag_end(|drag_controller, _x, _y| {
|
||||
let widget = drag_controller
|
||||
.widget()
|
||||
.dynamic_cast::<super::GraphView>()
|
||||
.expect("drag-update event is not on the GraphView");
|
||||
widget.graph_updated();
|
||||
});
|
||||
|
||||
let gesture = gtk::GestureClick::new();
|
||||
gesture.set_button(0);
|
||||
gesture.connect_pressed(
|
||||
|
|
Loading…
Reference in a new issue