Skip to content

Commit 2622364

Browse files
committed
Post regen manual code update
1 parent 8404767 commit 2622364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/list_view_apps_launcher/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn build_ui(app: &gtk::Application) {
7272
let app_info = model.item(position).and_downcast::<gio::AppInfo>().unwrap();
7373

7474
let context = list_view.display().app_launch_context();
75-
if let Err(err) = app_info.launch(&[], Some(&context)) {
75+
if let Err(err) = app_info.launch(None, Some(&context)) {
7676
let parent_window = list_view.root().and_downcast::<gtk::Window>().unwrap();
7777

7878
gtk::AlertDialog::builder()

gtk4/src/string_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl Extend<&'static str> for StringList {
1414
self.splice(
1515
self.n_items(),
1616
0,
17-
iter.into_iter().collect::<Vec<_>>().as_slice(),
17+
Some(iter.into_iter().collect::<Vec<_>>().as_slice()),
1818
);
1919
}
2020
}

0 commit comments

Comments
 (0)