Skip to content

Commit

Permalink
examples: Don't use show for presenting a window
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Oct 14, 2023
1 parent d220983 commit b7b16a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/list_box_model/list_box_row/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl ObjectImpl for ListBoxRow {
.build();
content_area.append(&spin_button);

dialog.show()
dialog.present()
}));
hbox.append(&edit_button);

Expand Down
2 changes: 1 addition & 1 deletion examples/list_box_model/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn build_ui(application: &gtk::Application) {
dialog.close();
}));

dialog.show()
dialog.present()
}));

hbox.append(&add_button);
Expand Down

0 comments on commit b7b16a4

Please sign in to comment.