Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: Update ListStore::new #1326

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/column_view_datagrid/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn build_ui(application: &gtk::Application) {
.title("ColumnView Example")
.build();

let store = gio::ListStore::new(BoxedAnyObject::static_type());
let store = gio::ListStore::new::<BoxedAnyObject>();

(0..10000).for_each(|i| {
store.append(&BoxedAnyObject::new(Row {
Expand Down
2 changes: 1 addition & 1 deletion examples/expressions/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn data() -> gio::ListStore {
vector.push(note);
}

let list_store = gio::ListStore::new(Note::static_type());
let list_store = gio::ListStore::new::<Note>();
list_store.splice(0, 0, &vector);
list_store
}
2 changes: 1 addition & 1 deletion examples/list_view_apps_launcher/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn build_ui(app: &gtk::Application) {
.title("ListView: Applications Launcher")
.build();

let model = gio::ListStore::new(gio::AppInfo::static_type());
let model = gio::ListStore::new::<gio::AppInfo>();
gio::AppInfo::all().iter().for_each(|app_info| {
model.append(app_info);
});
Expand Down