chore: add cosmic app list and cosmic panel buttons
This commit is contained in:
parent
853caa5b84
commit
464338585c
54 changed files with 3855 additions and 187 deletions
26
applets/cosmic-app-list/src/apps_container/imp.rs
Normal file
26
applets/cosmic-app-list/src/apps_container/imp.rs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// SPDX-License-Identifier: MPL-2.0-only
|
||||
use gtk4::glib;
|
||||
use gtk4::subclass::prelude::*;
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
use crate::dock_list::DockList;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct AppsContainer {
|
||||
pub saved_list: OnceCell<DockList>,
|
||||
pub active_list: OnceCell<DockList>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
impl ObjectSubclass for AppsContainer {
|
||||
// `NAME` needs to match `class` attribute of template
|
||||
const NAME: &'static str = "AppsContainer";
|
||||
type Type = super::AppsContainer;
|
||||
type ParentType = gtk4::Box;
|
||||
}
|
||||
|
||||
impl ObjectImpl for AppsContainer {}
|
||||
|
||||
impl WidgetImpl for AppsContainer {}
|
||||
|
||||
impl BoxImpl for AppsContainer {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue