File tree Expand file tree Collapse file tree 13 files changed +14
-14
lines changed Expand file tree Collapse file tree 13 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn build_ui(app: &Application) {
26
26
let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
27
27
28
28
// Create new model
29
- let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
29
+ let model = gio:: ListStore :: new :: < IntegerObject > ( ) ;
30
30
31
31
// Add the vector to the model
32
32
model. extend_from_slice ( & vector) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ fn build_ui(app: &Application) {
25
25
let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
26
26
27
27
// Create new model
28
- let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
28
+ let model = gio:: ListStore :: new :: < IntegerObject > ( ) ;
29
29
30
30
// Add the vector to the model
31
31
model. extend_from_slice ( & vector) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ fn build_ui(app: &Application) {
25
25
let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
26
26
27
27
// Create new model
28
- let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
28
+ let model = gio:: ListStore :: new :: < IntegerObject > ( ) ;
29
29
30
30
// Add the vector to the model
31
31
model. extend_from_slice ( & vector) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn build_ui(app: &Application) {
26
26
let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
27
27
28
28
// Create new model
29
- let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
29
+ let model = gio:: ListStore :: new :: < IntegerObject > ( ) ;
30
30
31
31
// Add the vector to the model
32
32
model. extend_from_slice ( & vector) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl Window {
35
35
36
36
fn setup_tasks ( & self ) {
37
37
// Create new model
38
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
38
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
39
39
40
40
// Get state and set model
41
41
self . imp ( ) . tasks . replace ( Some ( model) ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ impl Window {
95
95
// ANCHOR: setup_tasks
96
96
fn setup_tasks ( & self ) {
97
97
// Create new model
98
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
98
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
99
99
100
100
// Get state and set model
101
101
self . imp ( ) . tasks . replace ( Some ( model) ) ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl Window {
90
90
91
91
fn setup_tasks ( & self ) {
92
92
// Create new model
93
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
93
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
94
94
95
95
// Get state and set model
96
96
self . imp ( ) . tasks . replace ( Some ( model) ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl Window {
87
87
88
88
fn setup_tasks ( & self ) {
89
89
// Create new model
90
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
90
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
91
91
92
92
// Get state and set model
93
93
self . imp ( ) . tasks . replace ( Some ( model) ) ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl Window {
88
88
89
89
fn setup_tasks ( & self ) {
90
90
// Create new model
91
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
91
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
92
92
93
93
// Get state and set model
94
94
self . imp ( ) . tasks . replace ( Some ( model) ) ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl Window {
83
83
84
84
fn setup_tasks ( & self ) {
85
85
// Create new model
86
- let model = gio:: ListStore :: new ( TaskObject :: static_type ( ) ) ;
86
+ let model = gio:: ListStore :: new :: < TaskObject > ( ) ;
87
87
88
88
// Get state and set model
89
89
self . imp ( ) . tasks . replace ( Some ( model) ) ;
You can’t perform that action at this time.
0 commit comments