From 2af0c2aa8f3ec44a8173bf71f9062daa32677cfb Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 23 May 2024 16:29:34 +0900 Subject: [PATCH] update muda from 0.11 to 0.13 --- v2/Cargo.lock | 5 +++-- v2/Cargo.toml | 2 +- v2/src/wry/menu.rs | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/v2/Cargo.lock b/v2/Cargo.lock index ecde4e7..7108df3 100644 --- a/v2/Cargo.lock +++ b/v2/Cargo.lock @@ -1916,12 +1916,13 @@ dependencies = [ [[package]] name = "muda" -version = "0.11.5" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c47e7625990fc1af2226ea4f34fb2412b03c12639fcb91868581eb3a6893453" +checksum = "1717c136c99673f55640c14125a0349a5cd7fee6efcfb0adbfe4c289e3b3f7f2" dependencies = [ "cocoa", "crossbeam-channel", + "dpi", "gtk", "keyboard-types", "libxdo", diff --git a/v2/Cargo.toml b/v2/Cargo.toml index 01067d5..fd1c9e7 100644 --- a/v2/Cargo.toml +++ b/v2/Cargo.toml @@ -36,7 +36,7 @@ env_logger = { version = "0.11.3", default-features = false, features = ["auto-c lexopt = "0.3.0" log = "0.4.20" memchr = "2.7.1" -muda = "0.11.3" +muda = "0.13.4" notify = "6.1.1" once_cell = "1.19.0" open = "5.0.1" diff --git a/v2/src/wry/menu.rs b/v2/src/wry/menu.rs index 5dadf69..b881f97 100644 --- a/v2/src/wry/menu.rs +++ b/v2/src/wry/menu.rs @@ -1,9 +1,10 @@ use crate::renderer::MenuItem as AppMenuItem; use anyhow::Result; use muda::accelerator::{Accelerator, Code, Modifiers}; +use muda::dpi::{LogicalPosition, Position}; use muda::{ - AboutMetadata, ContextMenu, LogicalPosition, Menu as MenuBar, MenuEvent, MenuEventReceiver, - MenuId, MenuItem, Position, PredefinedMenuItem, Submenu, + AboutMetadata, ContextMenu, Menu as MenuBar, MenuEvent, MenuEventReceiver, MenuId, MenuItem, + PredefinedMenuItem, Submenu, }; use std::collections::hash_map::Entry; use std::collections::HashMap;