Skip to content

Commit e4dad15

Browse files
committed
regen: update for MR#1622
gtk-rs/gir#1622
1 parent 07a4d59 commit e4dad15

File tree

22 files changed

+36
-36
lines changed

22 files changed

+36
-36
lines changed

gdk-pixbuf/src/auto/pixbuf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ impl Pixbuf {
552552
//}
553553

554554
//#[doc(alias = "gdk_pixbuf_save_to_callbackv")]
555-
//pub fn save_to_callbackv<P: FnMut(&Vec<u8>, usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: &[&str], option_values: &[&str]) -> Result<(), glib::Error> {
555+
//pub fn save_to_callbackv<P: FnMut(&Vec<u8>, usize, &glib::Error) -> bool>(&self, save_func: P, type_: &str, option_keys: Option<&[&str]>, option_values: Option<&[&str]>) -> Result<(), glib::Error> {
556556
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_callbackv() }
557557
//}
558558

gdk-pixbuf/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 7047e1b433e2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 27b9ace47ead)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)

gdk-pixbuf/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 7047e1b433e2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 27b9ace47ead)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)

gio/src/auto/app_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ pub trait AppInfoExt: IsA<AppInfo> + 'static {
464464
#[doc(alias = "g_app_info_launch")]
465465
fn launch(
466466
&self,
467-
files: &[File],
467+
files: Option<&[File]>,
468468
context: Option<&impl IsA<AppLaunchContext>>,
469469
) -> Result<(), glib::Error> {
470470
unsafe {
@@ -487,7 +487,7 @@ pub trait AppInfoExt: IsA<AppInfo> + 'static {
487487
#[doc(alias = "g_app_info_launch_uris")]
488488
fn launch_uris(
489489
&self,
490-
uris: &[&str],
490+
uris: Option<&[&str]>,
491491
context: Option<&impl IsA<AppLaunchContext>>,
492492
) -> Result<(), glib::Error> {
493493
unsafe {

gio/src/auto/app_launch_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub trait AppLaunchContextExt: IsA<AppLaunchContext> + 'static {
6363
fn startup_notify_id(
6464
&self,
6565
info: Option<&impl IsA<AppInfo>>,
66-
files: &[File],
66+
files: Option<&[File]>,
6767
) -> Option<glib::GString> {
6868
unsafe {
6969
from_glib_full(ffi::g_app_launch_context_get_startup_notify_id(

gio/src/auto/dbus_proxy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ pub trait DBusProxyExt: IsA<DBusProxy> + 'static {
535535

536536
#[doc(alias = "g_dbus_proxy_get_cached_property_names")]
537537
#[doc(alias = "get_cached_property_names")]
538-
fn cached_property_names(&self) -> Vec<glib::GString> {
538+
fn cached_property_names(&self) -> Option<Vec<glib::GString>> {
539539
unsafe {
540-
FromGlibPtrContainer::from_glib_full(ffi::g_dbus_proxy_get_cached_property_names(
541-
self.as_ref().to_glib_none().0,
542-
))
540+
MaybeFromGlibPtrContainer::maybe_from_glib_full(
541+
ffi::g_dbus_proxy_get_cached_property_names(self.as_ref().to_glib_none().0),
542+
)
543543
}
544544
}
545545

gio/src/auto/dtls_connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub trait DtlsConnectionExt: IsA<DtlsConnection> + 'static {
330330
#[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
331331
#[doc(alias = "g_dtls_connection_set_advertised_protocols")]
332332
#[doc(alias = "advertised-protocols")]
333-
fn set_advertised_protocols(&self, protocols: &[&str]) {
333+
fn set_advertised_protocols(&self, protocols: Option<&[&str]>) {
334334
unsafe {
335335
ffi::g_dtls_connection_set_advertised_protocols(
336336
self.as_ref().to_glib_none().0,

gio/src/auto/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub fn content_type_is_unknown(type_: &str) -> bool {
215215
#[cfg(feature = "v2_60")]
216216
#[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
217217
#[doc(alias = "g_content_type_set_mime_dirs")]
218-
pub fn content_type_set_mime_dirs(dirs: &[&str]) {
218+
pub fn content_type_set_mime_dirs(dirs: Option<&[&str]>) {
219219
unsafe {
220220
ffi::g_content_type_set_mime_dirs(dirs.to_glib_none().0);
221221
}

gio/src/auto/tls_certificate.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ pub trait TlsCertificateExt: IsA<TlsCertificate> + 'static {
171171
#[doc(alias = "g_tls_certificate_get_dns_names")]
172172
#[doc(alias = "get_dns_names")]
173173
#[doc(alias = "dns-names")]
174-
fn dns_names(&self) -> Vec<glib::Bytes> {
174+
fn dns_names(&self) -> Option<Vec<glib::Bytes>> {
175175
unsafe {
176-
FromGlibPtrContainer::from_glib_container(ffi::g_tls_certificate_get_dns_names(
177-
self.as_ref().to_glib_none().0,
178-
))
176+
MaybeFromGlibPtrContainer::maybe_from_glib_container(
177+
ffi::g_tls_certificate_get_dns_names(self.as_ref().to_glib_none().0),
178+
)
179179
}
180180
}
181181

@@ -184,11 +184,11 @@ pub trait TlsCertificateExt: IsA<TlsCertificate> + 'static {
184184
#[doc(alias = "g_tls_certificate_get_ip_addresses")]
185185
#[doc(alias = "get_ip_addresses")]
186186
#[doc(alias = "ip-addresses")]
187-
fn ip_addresses(&self) -> Vec<InetAddress> {
187+
fn ip_addresses(&self) -> Option<Vec<InetAddress>> {
188188
unsafe {
189-
FromGlibPtrContainer::from_glib_container(ffi::g_tls_certificate_get_ip_addresses(
190-
self.as_ref().to_glib_none().0,
191-
))
189+
MaybeFromGlibPtrContainer::maybe_from_glib_container(
190+
ffi::g_tls_certificate_get_ip_addresses(self.as_ref().to_glib_none().0),
191+
)
192192
}
193193
}
194194

gio/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 7047e1b433e2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 27b9ace47ead)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 1490bcc19dc8)

0 commit comments

Comments
 (0)