mirror of
https://gitlab.freedesktop.org/pipewire/helvum.git
synced 2026-05-07 12:18:03 +02:00
Change cursor to grab when node can be dragged
This commit is contained in:
parent
85b21a920d
commit
d5283c803b
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use super::graph_view::GraphView;
|
||||
|
||||
use pipewire::port::Direction;
|
||||
use gtk::prelude::*;
|
||||
use pipewire::port::Direction;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
|
@ -52,6 +52,11 @@ impl Node {
|
|||
});
|
||||
result.label.add_controller(&motion_controller);
|
||||
|
||||
// Display a grab cursor when the mouse is over the label so the user knows the node can be dragged.
|
||||
result
|
||||
.label
|
||||
.set_cursor(gtk::gdk::Cursor::from_name("grab", None).as_ref());
|
||||
|
||||
result.widget.attach(&result.label, 0, 0, 2, 1);
|
||||
|
||||
result
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue