Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdkprj committed Nov 19, 2024
1 parent 389be3c commit ad3267a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wcpopup"
version = "0.3.5"
version = "0.4.0"
edition = "2021"
description = "Context menu for Windows and Linux"
documentation = "https://docs.rs/wcpopup/"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn example(window_handle: isize) {
let mut builder = MenuBuilder::new(window_handle);
// Using HWND
// let mut builder = MenuBuilder::new_for_hwnd(hwnd);
// Using gtk::ApplicationWindow
// Using gtk::ApplicationWindow or gkt::Window
// let mut builder = MenuBuilder::new_for_window(window);

builder.check("menu_item1", "Fit To Window", true, None);
Expand Down
4 changes: 1 addition & 3 deletions examples/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn main() -> wry::Result<()> {
}
Event::UserEvent(UserEvent::Append) => {
let mut menu = MENU_MAP.try_lock().unwrap();
let radio = MenuItem::new_radio_item("new_radio", "new_radio_label", "Theme", None, true, None);
let radio = MenuItem::new_radio_item("new_radio", "new_radio_label", "Theme", None, true, None, None);
let playback_speed = menu.get_menu_item_by_id("Theme").unwrap();
playback_speed.submenu.unwrap().insert(radio, 1);

Expand Down Expand Up @@ -341,8 +341,6 @@ fn create_new_window(title: String, event_loop: &EventLoopWindowTarget<UserEvent

pub fn add_menu(window_handle: isize) {
let size = MenuSize {
#[cfg(target_os = "linux")]
item_horizontal_padding: 10,
horizontal_padding: 0,
border_size: 0,
..Default::default()
Expand Down

0 comments on commit ad3267a

Please sign in to comment.