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

Commit

Permalink
Merge pull request #813 from pbor/menu-fix
Browse files Browse the repository at this point in the history
Fix menu bar example
  • Loading branch information
GuillaumeGomez committed Feb 26, 2023
2 parents 87c34fa + a03364f commit 276fbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/menu_bar_system/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn add_actions(
window: &gtk::ApplicationWindow,
) {
// Thanks to this method, we can say that this item is actually a checkbox.
let switch_action = gio::SimpleAction::new_stateful("switch", None, false.to_variant());
let switch_action = gio::SimpleAction::new_stateful("switch", None, &false.to_variant());
switch_action.connect_activate(glib::clone!(@weak switch => move |g, _| {
let mut is_active = false;
if let Some(g) = g.state() {
Expand Down

0 comments on commit 276fbad

Please sign in to comment.