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"
826826 # use strv
827827 manual = true
828828 [[object .function ]]
829- pattern = " [s|g]et_attribute_file_path "
829+ name = " get_attribute_file_path "
830830 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"
831840
832841[[object ]]
833842name = " Gio.FilterOutputStream"
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl FileInfo {
9393 #[ cfg_attr( docsrs, doc( cfg( feature = "v2_78" ) ) ) ]
9494 #[ doc( alias = "g_file_info_get_attribute_file_path" ) ]
9595 #[ 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 > {
9797 unsafe {
9898 from_glib_none ( ffi:: g_file_info_get_attribute_file_path (
9999 self . to_glib_none ( ) . 0 ,
@@ -368,12 +368,16 @@ impl FileInfo {
368368 #[ cfg( feature = "v2_78" ) ]
369369 #[ cfg_attr( docsrs, doc( cfg( feature = "v2_78" ) ) ) ]
370370 #[ 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+ ) {
372376 unsafe {
373377 ffi:: g_file_info_set_attribute_file_path (
374378 self . to_glib_none ( ) . 0 ,
375379 attribute. to_glib_none ( ) . 0 ,
376- attr_value. to_glib_none ( ) . 0 ,
380+ attr_value. as_ref ( ) . to_glib_none ( ) . 0 ,
377381 ) ;
378382 }
379383 }
You can’t perform that action at this time.
0 commit comments