fix: import trait
This commit is contained in:
parent
02e240b6bb
commit
5661e0c045
8 changed files with 24 additions and 8 deletions
|
|
@ -5,7 +5,7 @@ use crate::dock_popover::DockPopover;
|
|||
use crate::utils::BoxedWindowList;
|
||||
use crate::utils::Event;
|
||||
use cascade::cascade;
|
||||
use cosmic_panel_config::config::Anchor;
|
||||
use cosmic_panel_config::config::{Anchor, XdgWrapperConfig};
|
||||
use gtk4::glib;
|
||||
use gtk4::prelude::*;
|
||||
use gtk4::subclass::prelude::*;
|
||||
|
|
@ -165,6 +165,7 @@ impl DockItem {
|
|||
dots.set_margin_end(4);
|
||||
item_box.reorder_child_after(&dots.clone(), Some(&image.clone()));
|
||||
}
|
||||
Anchor::Center => unimplemented!(),
|
||||
};
|
||||
}
|
||||
let popover = imp.popover.borrow();
|
||||
|
|
@ -173,6 +174,7 @@ impl DockItem {
|
|||
Anchor::Right => PositionType::Left,
|
||||
Anchor::Top => PositionType::Bottom,
|
||||
Anchor::Bottom => PositionType::Top,
|
||||
Anchor::Center => unimplemented!(),
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use crate::dock_object::DockObject;
|
|||
use crate::utils::data_path;
|
||||
use crate::utils::{BoxedWindowList, Event, Item};
|
||||
use cascade::cascade;
|
||||
use cosmic_panel_config::config::{Anchor, CosmicPanelConfig};
|
||||
use cosmic_panel_config::config::{CosmicPanelConfig, XdgWrapperConfig, Anchor};
|
||||
use gio::DesktopAppInfo;
|
||||
use gio::Icon;
|
||||
use glib::Object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue