add handle for dock

This commit is contained in:
Ashley Wulber 2021-12-15 12:19:01 -05:00
parent b59d8a434c
commit 0984a13fa5
3 changed files with 64 additions and 34 deletions

View file

@ -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