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

Fix menu bar example #813

Merged
merged 1 commit into from
Feb 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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