Skip to content

Commit

Permalink
Merge pull request #1763 from mtilda/patch-2
Browse files Browse the repository at this point in the history
Remove unnecessary upcast from examples/squeezer_bin/main.rs
  • Loading branch information
sdroege authored Jun 8, 2024
2 parents 32e7155 + 86cbc21 commit d1c8a6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/squeezer_bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ fn main() -> glib::ExitCode {
let mode_switch = gtk::Switch::new();
let switch_label = gtk::Label::new(Some("keep aspect ratio"));
let squeezer = SqueezerBin::default();
squeezer.set_child(Some(
gtk::Label::new(Some("Hello World!")).upcast::<gtk::Widget>(),
));
squeezer.set_child(Some(gtk::Label::new(Some("Hello World!"))));

headerbar.pack_start(&mode_switch);
headerbar.pack_start(&switch_label);
Expand Down

0 comments on commit d1c8a6f

Please sign in to comment.