Skip to content

Commit

Permalink
Update src/Library/demos/Text Colors/code.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Hofer-Julian <[email protected]>
  • Loading branch information
M-Sabrina and Hofer-Julian authored Sep 9, 2023
1 parent 1d498fd commit d1bf738
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Library/demos/Text Colors/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use gtk::pango;

pub fn main() {
let label: gtk::Label = workbench::builder().object("label").unwrap();
label.connect_label_notify(|label| {
update_attributes(label);
});
label.connect_label_notify(update_attributes);
update_attributes(&label);
}

Expand Down

0 comments on commit d1bf738

Please sign in to comment.