Skip to content

Commit ac50eb6

Browse files
examples: Don't use show for presenting a window
1 parent bcfa842 commit ac50eb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/list_box_model/list_box_row/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl ObjectImpl for ListBoxRow {
103103
.build();
104104
content_area.append(&spin_button);
105105

106-
dialog.show()
106+
dialog.present()
107107
}));
108108
hbox.append(&edit_button);
109109

examples/list_box_model/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn build_ui(application: &gtk::Application) {
9494
dialog.close();
9595
}));
9696

97-
dialog.show()
97+
dialog.present()
9898
}));
9999

100100
hbox.append(&add_button);

0 commit comments

Comments
 (0)