diff --git a/gdk-pixbuf/src/auto/pixbuf.rs b/gdk-pixbuf/src/auto/pixbuf.rs index 4aede39d1ed6..66288bdc3a40 100644 --- a/gdk-pixbuf/src/auto/pixbuf.rs +++ b/gdk-pixbuf/src/auto/pixbuf.rs @@ -549,7 +549,7 @@ impl Pixbuf { //} //#[doc(alias = "gdk_pixbuf_save_to_callbackv")] - //pub fn save_to_callbackv, usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: &[&str], option_values: &[&str]) -> Result<(), glib::Error> { + //pub fn save_to_callbackv, usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: Option<&[&str]>, option_values: Option<&[&str]>) -> Result<(), glib::Error> { // unsafe { TODO: call ffi:gdk_pixbuf_save_to_callbackv() } //} diff --git a/gdk-pixbuf/src/auto/versions.txt b/gdk-pixbuf/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/gdk-pixbuf/src/auto/versions.txt +++ b/gdk-pixbuf/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/gdk-pixbuf/sys/versions.txt b/gdk-pixbuf/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/gdk-pixbuf/sys/versions.txt +++ b/gdk-pixbuf/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/gio/src/auto/app_info.rs b/gio/src/auto/app_info.rs index a5b91d0a3f73..0e118892492e 100644 --- a/gio/src/auto/app_info.rs +++ b/gio/src/auto/app_info.rs @@ -464,7 +464,7 @@ pub trait AppInfoExt: IsA + 'static { #[doc(alias = "g_app_info_launch")] fn launch( &self, - files: &[File], + files: Option<&[File]>, context: Option<&impl IsA>, ) -> Result<(), glib::Error> { unsafe { @@ -487,7 +487,7 @@ pub trait AppInfoExt: IsA + 'static { #[doc(alias = "g_app_info_launch_uris")] fn launch_uris( &self, - uris: &[&str], + uris: Option<&[&str]>, context: Option<&impl IsA>, ) -> Result<(), glib::Error> { unsafe { diff --git a/gio/src/auto/app_launch_context.rs b/gio/src/auto/app_launch_context.rs index ab4bdb913ad9..fbf7261c9129 100644 --- a/gio/src/auto/app_launch_context.rs +++ b/gio/src/auto/app_launch_context.rs @@ -63,7 +63,7 @@ pub trait AppLaunchContextExt: IsA + 'static { fn startup_notify_id( &self, info: Option<&impl IsA>, - files: &[File], + files: Option<&[File]>, ) -> Option { unsafe { from_glib_full(ffi::g_app_launch_context_get_startup_notify_id( diff --git a/gio/src/auto/dtls_connection.rs b/gio/src/auto/dtls_connection.rs index d4446e60db99..c06b223be643 100644 --- a/gio/src/auto/dtls_connection.rs +++ b/gio/src/auto/dtls_connection.rs @@ -330,7 +330,7 @@ pub trait DtlsConnectionExt: IsA + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))] #[doc(alias = "g_dtls_connection_set_advertised_protocols")] #[doc(alias = "advertised-protocols")] - fn set_advertised_protocols(&self, protocols: &[&str]) { + fn set_advertised_protocols(&self, protocols: Option<&[&str]>) { unsafe { ffi::g_dtls_connection_set_advertised_protocols( self.as_ref().to_glib_none().0, diff --git a/gio/src/auto/functions.rs b/gio/src/auto/functions.rs index 5a3df411f7dc..4201f081230a 100644 --- a/gio/src/auto/functions.rs +++ b/gio/src/auto/functions.rs @@ -215,7 +215,7 @@ pub fn content_type_is_unknown(type_: &str) -> bool { #[cfg(feature = "v2_60")] #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))] #[doc(alias = "g_content_type_set_mime_dirs")] -pub fn content_type_set_mime_dirs(dirs: &[&str]) { +pub fn content_type_set_mime_dirs(dirs: Option<&[&str]>) { unsafe { ffi::g_content_type_set_mime_dirs(dirs.to_glib_none().0); } diff --git a/gio/src/auto/versions.txt b/gio/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/gio/src/auto/versions.txt +++ b/gio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/gio/sys/versions.txt b/gio/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/gio/sys/versions.txt +++ b/gio/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/gir b/gir index b2a1c6f9b362..9e6d0758f347 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit b2a1c6f9b3622c45e67af75479eaf640a8af0081 +Subproject commit 9e6d0758f347dea5ebe365be93bf7740d4626887 diff --git a/glib/gobject-sys/versions.txt b/glib/gobject-sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/glib/gobject-sys/versions.txt +++ b/glib/gobject-sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/glib/src/auto/functions.rs b/glib/src/auto/functions.rs index 815147662c16..33c0f5c0e2ae 100644 --- a/glib/src/auto/functions.rs +++ b/glib/src/auto/functions.rs @@ -39,8 +39,8 @@ pub fn base64_decode(text: &str) -> Vec { //} #[doc(alias = "g_base64_encode")] -pub fn base64_encode(data: &[u8]) -> crate::GString { - let len = data.len() as _; +pub fn base64_encode(data: Option<&[u8]>) -> crate::GString { + let len = data.map(|arr| arr.len()).unwrap_or(0) as _; unsafe { from_glib_full(ffi::g_base64_encode(data.to_glib_none().0, len)) } } @@ -711,7 +711,7 @@ pub fn spaced_primes_closest(num: u32) -> u32 { pub fn spawn_async( working_directory: Option>, argv: &[&std::path::Path], - envp: &[&std::path::Path], + envp: Option<&[&std::path::Path]>, flags: SpawnFlags, child_setup: Option>, ) -> Result { @@ -756,7 +756,7 @@ pub fn spawn_async( //#[cfg(feature = "v2_68")] //#[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))] //#[doc(alias = "g_spawn_async_with_pipes_and_fds")] -//pub fn spawn_async_with_pipes_and_fds(working_directory: Option>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option>, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: &[i32], target_fds: &[i32], n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> { +//pub fn spawn_async_with_pipes_and_fds(working_directory: Option>, argv: &[&std::path::Path], envp: Option<&[&std::path::Path]>, flags: SpawnFlags, child_setup: Option>, stdin_fd: i32, stdout_fd: i32, stderr_fd: i32, source_fds: Option<&[i32]>, target_fds: Option<&[i32]>, n_fds: usize) -> Result<(Pid, i32, i32, i32), crate::Error> { // unsafe { TODO: call ffi:g_spawn_async_with_pipes_and_fds() } //} @@ -817,7 +817,7 @@ pub fn spawn_command_line_async( //} //#[doc(alias = "g_spawn_sync")] -//pub fn spawn_sync(working_directory: Option>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<&mut dyn (FnMut())>, standard_output: Vec, standard_error: Vec) -> Result { +//pub fn spawn_sync(working_directory: Option>, argv: &[&std::path::Path], envp: Option<&[&std::path::Path]>, flags: SpawnFlags, child_setup: Option<&mut dyn (FnMut())>, standard_output: Vec, standard_error: Vec) -> Result { // unsafe { TODO: call ffi:g_spawn_sync() } //} diff --git a/glib/src/auto/versions.txt b/glib/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/glib/src/auto/versions.txt +++ b/glib/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/glib/sys/versions.txt b/glib/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/glib/sys/versions.txt +++ b/glib/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/graphene/src/auto/versions.txt b/graphene/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/graphene/src/auto/versions.txt +++ b/graphene/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/graphene/sys/versions.txt b/graphene/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/graphene/sys/versions.txt +++ b/graphene/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/pango/src/auto/versions.txt b/pango/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/pango/src/auto/versions.txt +++ b/pango/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/pango/sys/versions.txt b/pango/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/pango/sys/versions.txt +++ b/pango/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/pangocairo/src/auto/versions.txt b/pangocairo/src/auto/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/pangocairo/src/auto/versions.txt +++ b/pangocairo/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c) diff --git a/pangocairo/sys/versions.txt b/pangocairo/sys/versions.txt index 9c44f3dbe11d..06dfb1d65192 100644 --- a/pangocairo/sys/versions.txt +++ b/pangocairo/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ b2a1c6f9b362) +Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347) from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)