Drag and Drop works ok now.
The main functionality works but only in cosmic desktop. So there are some issues that need to be worked out yet in regards to libcosmic.
This commit is contained in:
parent
614630bea8
commit
a36a1d59c6
10 changed files with 466 additions and 512 deletions
|
@ -47,7 +47,7 @@ impl AllowedMimeTypes for ServiceItem {
|
|||
}
|
||||
|
||||
impl AsMimeTypes for ServiceItem {
|
||||
fn available(&self) -> std::borrow::Cow<'static, [String]> {
|
||||
fn available(&self) -> Cow<'static, [String]> {
|
||||
debug!(?self);
|
||||
Cow::from(vec!["application/service-item".to_string()])
|
||||
}
|
||||
|
@ -67,11 +67,13 @@ impl AsMimeTypes for ServiceItem {
|
|||
impl From<&ServiceItem> for Value {
|
||||
fn from(value: &ServiceItem) -> Self {
|
||||
match &value.kind {
|
||||
ServiceItemKind::Song(song) => todo!(),
|
||||
ServiceItemKind::Video(video) => todo!(),
|
||||
ServiceItemKind::Image(image) => todo!(),
|
||||
ServiceItemKind::Presentation(presentation) => todo!(),
|
||||
ServiceItemKind::Content(slide) => todo!(),
|
||||
ServiceItemKind::Song(song) => Value::from(song),
|
||||
ServiceItemKind::Video(video) => Value::from(video),
|
||||
ServiceItemKind::Image(image) => Value::from(image),
|
||||
ServiceItemKind::Presentation(presentation) => {
|
||||
Value::from(presentation)
|
||||
}
|
||||
ServiceItemKind::Content(slide) => Value::from(slide),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue