File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -826,8 +826,17 @@ status = "generate"
826
826
# use strv
827
827
manual = true
828
828
[[object .function ]]
829
- pattern = " [s|g]et_attribute_file_path "
829
+ name = " get_attribute_file_path "
830
830
version = " 2.78"
831
+ [object .function .return ]
832
+ nullable = true
833
+ type = " filename"
834
+ [[object .function ]]
835
+ name = " set_attribute_file_path"
836
+ version = " 2.78"
837
+ [[object .function .parameter ]]
838
+ name = " attr_value"
839
+ string_type = " filename"
831
840
832
841
[[object ]]
833
842
name = " Gio.FilterOutputStream"
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl FileInfo {
93
93
#[ cfg_attr( docsrs, doc( cfg( feature = "v2_78" ) ) ) ]
94
94
#[ doc( alias = "g_file_info_get_attribute_file_path" ) ]
95
95
#[ doc( alias = "get_attribute_file_path" ) ]
96
- pub fn attribute_file_path ( & self , attribute : & str ) -> glib :: GString {
96
+ pub fn attribute_file_path ( & self , attribute : & str ) -> Option < std :: path :: PathBuf > {
97
97
unsafe {
98
98
from_glib_none ( ffi:: g_file_info_get_attribute_file_path (
99
99
self . to_glib_none ( ) . 0 ,
@@ -368,12 +368,16 @@ impl FileInfo {
368
368
#[ cfg( feature = "v2_78" ) ]
369
369
#[ cfg_attr( docsrs, doc( cfg( feature = "v2_78" ) ) ) ]
370
370
#[ doc( alias = "g_file_info_set_attribute_file_path" ) ]
371
- pub fn set_attribute_file_path ( & self , attribute : & str , attr_value : & str ) {
371
+ pub fn set_attribute_file_path (
372
+ & self ,
373
+ attribute : & str ,
374
+ attr_value : impl AsRef < std:: path:: Path > ,
375
+ ) {
372
376
unsafe {
373
377
ffi:: g_file_info_set_attribute_file_path (
374
378
self . to_glib_none ( ) . 0 ,
375
379
attribute. to_glib_none ( ) . 0 ,
376
- attr_value. to_glib_none ( ) . 0 ,
380
+ attr_value. as_ref ( ) . to_glib_none ( ) . 0 ,
377
381
) ;
378
382
}
379
383
}
You can’t perform that action at this time.
0 commit comments