Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 0f30c7e

Browse files
authored
Merge pull request #797 from sdroege/simple-action-by-value
examples: Fix compilation after `gio::SimpleAction` constructor took …
2 parents 3ce3251 + 5b5aa1f commit 0f30c7e

File tree

16 files changed

+34
-56
lines changed

16 files changed

+34
-56
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- stable
1919
- beta
2020
- nightly
21-
- "1.63.0"
21+
- "1.64.0"
2222
conf:
2323
- { name: "atk", features: "v2_34", test_sys: false } # disable for now, until we get 2.38 on the docker image
2424
- { name: "gdk", features: "v3_24", test_sys: true }
@@ -98,7 +98,7 @@ jobs:
9898
- stable
9999
- beta
100100
- nightly
101-
- "1.63.0"
101+
- "1.64.0"
102102
steps:
103103
- uses: actions/checkout@v2
104104
- uses: actions-rs/toolchain@v1

atk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = ["atk", "gtk-rs", "gnome", "accessibility"]
1212
repository = "https://github.com/gtk-rs/gtk3-rs"
1313
exclude = ["gir-files/*"]
1414
edition = "2021"
15-
rust-version = "1.63"
15+
rust-version = "1.64"
1616

1717
[lib]
1818
name = "atk"

atk/sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ name = "atk-sys"
3939
repository = "https://github.com/gtk-rs/gtk3-rs"
4040
version = "0.17.0"
4141
edition = "2021"
42-
rust-version = "1.63"
42+
rust-version = "1.64"
4343
[package.metadata.docs.rs]
4444
features = ["dox"]
4545
[package.metadata.system-deps.atk]

examples/menu_bar_system/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn add_actions(
8383
window: &gtk::ApplicationWindow,
8484
) {
8585
// Thanks to this method, we can say that this item is actually a checkbox.
86-
let switch_action = gio::SimpleAction::new_stateful("switch", None, &false.to_variant());
86+
let switch_action = gio::SimpleAction::new_stateful("switch", None, false.to_variant());
8787
switch_action.connect_activate(glib::clone!(@weak switch => move |g, _| {
8888
let mut is_active = false;
8989
if let Some(g) = g.state() {

gdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exclude = [
1313
"gir-files/*",
1414
]
1515
edition = "2021"
16-
rust-version = "1.63"
16+
rust-version = "1.64"
1717

1818
[lib]
1919
name = "gdk"

gdk/sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ name = "gdk-sys"
5252
repository = "https://github.com/gtk-rs/gtk3-rs"
5353
version = "0.17.0"
5454
edition = "2021"
55-
rust-version = "1.63"
55+
rust-version = "1.64"
5656
[package.metadata.docs.rs]
5757
features = ["dox"]
5858
[package.metadata.system-deps.gdk_3_0]

gdkwayland/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "gdkwayland"
1010
readme = "README.md"
1111
repository = "https://github.com/gtk-rs/gtk3-rs"
1212
version = "0.17.0"
13-
rust-version = "1.63"
13+
rust-version = "1.64"
1414

1515
[features]
1616
v3_24 = ["ffi/v3_24", "gdk/v3_24"]

gdkwayland/src/wayland_window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ impl WaylandWindow {
4444
) {
4545
let window = from_glib_borrow(window);
4646
let handle: Borrowed<glib::GString> = from_glib_borrow(handle);
47-
let callback: &P = &*(user_data as *mut _);
47+
let callback = &*(user_data as *mut P);
4848
(*callback)(&window, handle.as_str());
4949
}
5050
unsafe extern "C" fn destroy_notify<P: Fn(&WaylandWindow, &str) + 'static>(
5151
data: glib::ffi::gpointer,
5252
) {
53-
let _ = Box::from_raw(data as *mut _);
53+
let _ = Box::from_raw(data as *mut P);
5454
}
5555
unsafe {
5656
from_glib(ffi::gdk_wayland_window_export_handle(

gdkwayland/sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "gdkwayland-sys"
88
repository = "https://github.com/gtk-rs/gtk3-rs"
99
version = "0.17.0"
1010
edition = "2021"
11-
rust-version = "1.63"
11+
rust-version = "1.64"
1212

1313
[lib]
1414
name = "gdk_wayland_sys"

gdkx11/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "Rust bindings for the GDK X11 library"
1111
repository = "https://github.com/gtk-rs/gtk3-rs"
1212
exclude = ["gir-files/*"]
1313
edition = "2021"
14-
rust-version = "1.63"
14+
rust-version = "1.64"
1515

1616
[lib]
1717
name = "gdkx11"

0 commit comments

Comments
 (0)