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

Commit 276fbad

Browse files
Merge pull request #813 from pbor/menu-fix
Fix menu bar example
2 parents 87c34fa + a03364f commit 276fbad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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() {

0 commit comments

Comments
 (0)