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)

0 commit comments

Comments
 (0)