Change cursor to grab hand over output port.

This lets the user know the port can be dragged to create a link.
This commit is contained in:
Tom A. Wagner
2021-05-08 18:44:50 +02:00
parent a5d8c871ee
commit a9cd428a5a

View File

@@ -101,6 +101,9 @@ impl Port {
.content(&gdk::ContentProvider::for_value(&(id.to_value())))
.build();
res.add_controller(&drag_src);
// Display a grab cursor when the mouse is over the port so the user knows it can be dragged to another port.
res.set_cursor(gtk::gdk::Cursor::from_name("grab", None).as_ref());
}
}