more cleanup and fix save/restore dock items

This commit is contained in:
Ashley Wulber 2021-12-27 18:33:17 -05:00
parent fb6bbb79a7
commit be9ee81967
5 changed files with 85 additions and 138 deletions

View file

@ -2,8 +2,6 @@ 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;
@ -14,7 +12,6 @@ pub struct DockItem {
pub image: TemplateChild<gtk::Image>,
#[template_child]
pub dots: TemplateChild<gtk::Label>,
pub drag_controller: OnceCell<DragSource>,
}
#[glib::object_subclass]