accept dnd drops from app library prototype
This commit is contained in:
parent
b9247e37c4
commit
83b6f3da5e
9 changed files with 215 additions and 47 deletions
|
|
@ -2,6 +2,8 @@ use gtk::glib;
|
|||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk4 as gtk;
|
||||
use gtk4::DragSource;
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
use gtk::CompositeTemplate;
|
||||
|
||||
|
|
@ -10,6 +12,7 @@ use gtk::CompositeTemplate;
|
|||
pub struct DockItem {
|
||||
#[template_child]
|
||||
pub image: TemplateChild<gtk::Image>,
|
||||
pub drag_controller: OnceCell<DragSource>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue