mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 03:26:10 +08:00
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:
@@ -101,6 +101,9 @@ impl Port {
|
|||||||
.content(&gdk::ContentProvider::for_value(&(id.to_value())))
|
.content(&gdk::ContentProvider::for_value(&(id.to_value())))
|
||||||
.build();
|
.build();
|
||||||
res.add_controller(&drag_src);
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user