add handle for dock
This commit is contained in:
parent
b59d8a434c
commit
0984a13fa5
3 changed files with 64 additions and 34 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use gtk4 as gtk;
|
||||
use gtk4::Box;
|
||||
use gtk4::EventControllerMotion;
|
||||
use gtk4::Revealer;
|
||||
|
||||
|
|
@ -17,8 +18,13 @@ pub struct Window {
|
|||
pub list_view: TemplateChild<ListView>,
|
||||
#[template_child]
|
||||
pub revealer: TemplateChild<Revealer>,
|
||||
#[template_child]
|
||||
pub cursor_enter_handle: TemplateChild<Box>,
|
||||
#[template_child]
|
||||
pub cursor_leave_handle: TemplateChild<Box>,
|
||||
pub model: OnceCell<gio::ListStore>,
|
||||
pub event_controller: OnceCell<EventControllerMotion>,
|
||||
pub enter_event_controller: OnceCell<EventControllerMotion>,
|
||||
pub leave_event_controller: OnceCell<EventControllerMotion>,
|
||||
}
|
||||
|
||||
// The central trait for subclassing a GObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue