File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,9 @@ impl StaticType for BorderNode {
2222}
2323
2424impl BorderNode {
25- //#[doc(alias = "gsk_border_node_get_colors")]
26- //#[doc(alias = "get_colors")]
27- //pub fn colors(&self) -> /*Unimplemented*/FixedArray TypeId { ns_id: 12, id: 96 }; 4 {
28- // unsafe { TODO: call ffi:gsk_border_node_get_colors() }
29- //}
30-
3125 #[ doc( alias = "gsk_border_node_get_outline" ) ]
3226 #[ doc( alias = "get_outline" ) ]
3327 pub fn outline ( & self ) -> RoundedRect {
3428 unsafe { from_glib_none ( ffi:: gsk_border_node_get_outline ( self . to_glib_none ( ) . 0 ) ) }
3529 }
36-
37- //#[doc(alias = "gsk_border_node_get_widths")]
38- //#[doc(alias = "get_widths")]
39- //pub fn widths(&self) -> /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 20 }; 4 {
40- // unsafe { TODO: call ffi:gsk_border_node_get_widths() }
41- //}
4230}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::{prelude::*, StringList};
55impl FromIterator < & ' static str > for StringList {
66 fn from_iter < I : IntoIterator < Item = & ' static str > > ( iter : I ) -> Self {
77 assert_initialized_main_thread ! ( ) ;
8- StringList :: new ( iter. into_iter ( ) . collect :: < Vec < _ > > ( ) . as_slice ( ) )
8+ StringList :: new ( Some ( iter. into_iter ( ) . collect :: < Vec < _ > > ( ) . as_slice ( ) ) )
99 }
1010}
1111
@@ -14,15 +14,15 @@ 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}
2121
2222impl FromIterator < String > for StringList {
2323 fn from_iter < I : IntoIterator < Item = String > > ( iter : I ) -> Self {
2424 assert_initialized_main_thread ! ( ) ;
25- let string_list = StringList :: new ( & [ ] ) ;
25+ let string_list = StringList :: new ( None ) ;
2626 for s in iter {
2727 string_list. append ( & s) ;
2828 }
@@ -40,7 +40,7 @@ impl Extend<String> for StringList {
4040
4141impl Default for StringList {
4242 fn default ( ) -> Self {
43- Self :: new ( & [ ] )
43+ Self :: new ( None )
4444 }
4545}
4646
You can’t perform that action at this time.
0 commit comments