update libcosmic

This commit is contained in:
Ashley Wulber 2025-02-24 14:39:43 -05:00 committed by Jeremy Soller
parent 7918485651
commit 4b0e73fca4
3 changed files with 23 additions and 23 deletions

View file

@ -7,7 +7,7 @@ use cosmic::app::{message, Core, Settings, Task};
use cosmic::iced::{Point, Size};
use cosmic::iced_core::{image, window};
use cosmic::iced_runtime::platform_specific::wayland::subsurface::SctkSubsurfaceSettings;
use cosmic::surface_message::{MessageWrapper, SurfaceMessage, SurfaceMessageHandler};
use cosmic::surface_message::{MessageWrapper, SurfaceMessage};
use cosmic::widget::text;
use cosmic::{
cosmic_config::{self, ConfigSet, CosmicConfigEntry},
@ -389,9 +389,9 @@ struct NameIndexPair {
data_idx: Option<usize>,
}
impl SurfaceMessageHandler for Message {
fn to_surface_message(self) -> MessageWrapper<Self> {
match self {
impl From<Message> for MessageWrapper<Message> {
fn from(value: Message) -> Self {
match value {
Message::Surface(msg) => MessageWrapper::Surface(msg),
msg => MessageWrapper::Message(msg),
}

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-only
use cosmic::app::{message, Core, Settings, Task};
use cosmic::surface_message::{MessageWrapper, SurfaceMessage, SurfaceMessageHandler};
use cosmic::surface_message::{MessageWrapper, SurfaceMessage};
use cosmic::{
executor,
iced::{
@ -207,9 +207,9 @@ pub struct Flags {
wallpapers: Vec<(String, cosmic_bg_config::Source)>,
}
impl SurfaceMessageHandler for Message {
fn to_surface_message(self) -> MessageWrapper<Self> {
match self {
impl From<Message> for MessageWrapper<Message> {
fn from(value: Message) -> Self {
match value {
Message::Surface(msg) => MessageWrapper::Surface(msg),
msg => MessageWrapper::Message(msg),
}