Skip to content

Commit 5e597f9

Browse files
committed
regen: update for MR#1622
gtk-rs/gir#1622
1 parent 22bf3f1 commit 5e597f9

File tree

19 files changed

+32
-26
lines changed

19 files changed

+32
-26
lines changed

gdk-pixbuf/src/auto/pixbuf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ impl Pixbuf {
469469
// unsafe { TODO: call ffi:gdk_pixbuf_get_options() }
470470
//}
471471

472+
//#[doc(alias = "gdk_pixbuf_get_pixels")]
473+
//#[doc(alias = "get_pixels")]
474+
//pub fn pixels(&self) -> Vec<u8> {
475+
// unsafe { TODO: call ffi:gdk_pixbuf_get_pixels() }
476+
//}
477+
472478
#[doc(alias = "gdk_pixbuf_get_rowstride")]
473479
#[doc(alias = "get_rowstride")]
474480
pub fn rowstride(&self) -> i32 {
@@ -549,7 +555,7 @@ impl Pixbuf {
549555
//}
550556

551557
//#[doc(alias = "gdk_pixbuf_save_to_callbackv")]
552-
//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> {
558+
//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> {
553559
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_callbackv() }
554560
//}
555561

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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

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/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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ pub fn content_type_get_symbolic_icon(type_: &str) -> Icon {
181181
#[doc(alias = "g_content_type_guess")]
182182
pub fn content_type_guess(
183183
filename: Option<impl AsRef<std::path::Path>>,
184-
data: &[u8],
184+
data: Option<&[u8]>,
185185
) -> (glib::GString, bool) {
186-
let data_size = data.len() as _;
186+
let data_size = data.map(|arr| arr.len()).unwrap_or(0) as _;
187187
unsafe {
188188
let mut result_uncertain = std::mem::MaybeUninit::uninit();
189189
let ret = from_glib_full(ffi::g_content_type_guess(
@@ -233,7 +233,7 @@ pub fn content_type_is_unknown(type_: &str) -> bool {
233233
#[cfg(feature = "v2_60")]
234234
#[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
235235
#[doc(alias = "g_content_type_set_mime_dirs")]
236-
pub fn content_type_set_mime_dirs(dirs: &[&str]) {
236+
pub fn content_type_set_mime_dirs(dirs: Option<&[&str]>) {
237237
unsafe {
238238
ffi::g_content_type_set_mime_dirs(dirs.to_glib_none().0);
239239
}

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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

gio/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

glib/gobject-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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

glib/src/auto/functions.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ pub fn base64_decode(text: &str) -> Vec<u8> {
3939
//}
4040

4141
#[doc(alias = "g_base64_encode")]
42-
pub fn base64_encode(data: &[u8]) -> crate::GString {
43-
let len = data.len() as _;
42+
pub fn base64_encode(data: Option<&[u8]>) -> crate::GString {
43+
let len = data.map(|arr| arr.len()).unwrap_or(0) as _;
4444
unsafe { from_glib_full(ffi::g_base64_encode(data.to_glib_none().0, len)) }
4545
}
4646

@@ -711,7 +711,7 @@ pub fn spaced_primes_closest(num: u32) -> u32 {
711711
pub fn spawn_async(
712712
working_directory: Option<impl AsRef<std::path::Path>>,
713713
argv: &[&std::path::Path],
714-
envp: &[&std::path::Path],
714+
envp: Option<&[&std::path::Path]>,
715715
flags: SpawnFlags,
716716
child_setup: Option<Box_<dyn FnOnce() + 'static>>,
717717
) -> Result<Pid, crate::Error> {
@@ -756,7 +756,7 @@ pub fn spawn_async(
756756
//#[cfg(feature = "v2_68")]
757757
//#[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
758758
//#[doc(alias = "g_spawn_async_with_pipes_and_fds")]
759-
//pub fn spawn_async_with_pipes_and_fds(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<Box_<dyn FnOnce() + 'static>>, 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> {
759+
//pub fn spawn_async_with_pipes_and_fds(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: Option<&[&std::path::Path]>, flags: SpawnFlags, child_setup: Option<Box_<dyn FnOnce() + 'static>>, 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> {
760760
// unsafe { TODO: call ffi:g_spawn_async_with_pipes_and_fds() }
761761
//}
762762

@@ -817,7 +817,7 @@ pub fn spawn_command_line_async(
817817
//}
818818

819819
//#[doc(alias = "g_spawn_sync")]
820-
//pub fn spawn_sync(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: &[&std::path::Path], flags: SpawnFlags, child_setup: Option<&mut dyn (FnMut())>, standard_output: Vec<u8>, standard_error: Vec<u8>) -> Result<i32, crate::Error> {
820+
//pub fn spawn_sync(working_directory: Option<impl AsRef<std::path::Path>>, argv: &[&std::path::Path], envp: Option<&[&std::path::Path]>, flags: SpawnFlags, child_setup: Option<&mut dyn (FnMut())>, standard_output: Vec<u8>, standard_error: Vec<u8>) -> Result<i32, crate::Error> {
821821
// unsafe { TODO: call ffi:g_spawn_sync() }
822822
//}
823823

glib/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

glib/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

graphene/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

graphene/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

pango/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

pango/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

pangocairo/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

pangocairo/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 @ 2d0807e9c5bc)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5acf3154af3f)

0 commit comments

Comments
 (0)