Skip to content

Commit 4c20593

Browse files
committed
regen: update for MR#1622
gtk-rs/gir#1622
1 parent 5fbf47c commit 4c20593

File tree

22 files changed

+32
-32
lines changed

22 files changed

+32
-32
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/pixbuf_format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ impl PixbufFormat {
2929

3030
#[doc(alias = "gdk_pixbuf_format_get_extensions")]
3131
#[doc(alias = "get_extensions")]
32-
pub fn extensions(&self) -> Vec<glib::GString> {
32+
pub fn extensions(&self) -> Option<Vec<glib::GString>> {
3333
unsafe {
34-
FromGlibPtrContainer::from_glib_full(ffi::gdk_pixbuf_format_get_extensions(
34+
TryFromGlibPtrContainer::try_from_glib_full(ffi::gdk_pixbuf_format_get_extensions(
3535
mut_override(self.to_glib_none().0),
3636
))
3737
}
@@ -49,9 +49,9 @@ impl PixbufFormat {
4949

5050
#[doc(alias = "gdk_pixbuf_format_get_mime_types")]
5151
#[doc(alias = "get_mime_types")]
52-
pub fn mime_types(&self) -> Vec<glib::GString> {
52+
pub fn mime_types(&self) -> Option<Vec<glib::GString>> {
5353
unsafe {
54-
FromGlibPtrContainer::from_glib_full(ffi::gdk_pixbuf_format_get_mime_types(
54+
TryFromGlibPtrContainer::try_from_glib_full(ffi::gdk_pixbuf_format_get_mime_types(
5555
mut_override(self.to_glib_none().0),
5656
))
5757
}

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 @ 8fd6a086af18)
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 @ 8fd6a086af18)
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+
TryFromGlibPtrContainer::try_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/file_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ impl FileInfo {
312312
}
313313

314314
#[doc(alias = "g_file_info_list_attributes")]
315-
pub fn list_attributes(&self, name_space: Option<&str>) -> Vec<glib::GString> {
315+
pub fn list_attributes(&self, name_space: Option<&str>) -> Option<Vec<glib::GString>> {
316316
unsafe {
317-
FromGlibPtrContainer::from_glib_full(ffi::g_file_info_list_attributes(
317+
TryFromGlibPtrContainer::try_from_glib_full(ffi::g_file_info_list_attributes(
318318
self.to_glib_none().0,
319319
name_space.to_glib_none().0,
320320
))

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
}

0 commit comments

Comments
 (0)