Skip to content

Commit

Permalink
Regenerate with latest gir/gir-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Dec 10, 2024
1 parent 864ed02 commit e533055
Show file tree
Hide file tree
Showing 257 changed files with 1,654 additions and 1,631 deletions.
2 changes: 1 addition & 1 deletion gdk4-macos/src/auto/macos_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl MacosSurface {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::native\0".as_ptr() as *const _,
c"notify::native".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_native_trampoline::<F> as *const (),
)),
Expand Down
4 changes: 2 additions & 2 deletions gdk4-macos/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-macos/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
4 changes: 2 additions & 2 deletions gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/x11_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl X11Screen {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"window-manager-changed\0".as_ptr() as *const _,
c"window-manager-changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
window_manager_changed_trampoline::<F> as *const (),
)),
Expand Down
4 changes: 2 additions & 2 deletions gdk4-x11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1b34ebba86cb)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
Generated by gir (https://github.com/gtk-rs/gir @ 8c3c93b02091)
from gir-files (https://github.com/gtk-rs/gir-files @ b19fc8902d65)
10 changes: 5 additions & 5 deletions gdk4/src/auto/cicp_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl CicpParams {
}

#[doc(alias = "gdk_cicp_params_build_color_state")]
pub fn build_color_state(&self) -> Result<Option<ColorState>, glib::Error> {
pub fn build_color_state(&self) -> Result<ColorState, glib::Error> {
unsafe {
let mut error = std::ptr::null_mut();
let ret = ffi::gdk_cicp_params_build_color_state(self.to_glib_none().0, &mut error);
Expand Down Expand Up @@ -117,7 +117,7 @@ impl CicpParams {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::color-primaries\0".as_ptr() as *const _,
c"notify::color-primaries".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_color_primaries_trampoline::<F> as *const (),
)),
Expand Down Expand Up @@ -145,7 +145,7 @@ impl CicpParams {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::matrix-coefficients\0".as_ptr() as *const _,
c"notify::matrix-coefficients".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_matrix_coefficients_trampoline::<F> as *const (),
)),
Expand All @@ -170,7 +170,7 @@ impl CicpParams {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::range\0".as_ptr() as *const _,
c"notify::range".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_range_trampoline::<F> as *const (),
)),
Expand Down Expand Up @@ -198,7 +198,7 @@ impl CicpParams {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::transfer-function\0".as_ptr() as *const _,
c"notify::transfer-function".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_transfer_function_trampoline::<F> as *const (),
)),
Expand Down
8 changes: 4 additions & 4 deletions gdk4/src/auto/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl Clipboard {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"changed\0".as_ptr() as *const _,
c"changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
changed_trampoline::<F> as *const (),
)),
Expand All @@ -363,7 +363,7 @@ impl Clipboard {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::content\0".as_ptr() as *const _,
c"notify::content".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_content_trampoline::<F> as *const (),
)),
Expand All @@ -386,7 +386,7 @@ impl Clipboard {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::formats\0".as_ptr() as *const _,
c"notify::formats".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_formats_trampoline::<F> as *const (),
)),
Expand All @@ -409,7 +409,7 @@ impl Clipboard {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::local\0".as_ptr() as *const _,
c"notify::local".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_local_trampoline::<F> as *const (),
)),
Expand Down
7 changes: 7 additions & 0 deletions gdk4/src/auto/content_formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ impl ContentFormats {
}
}

#[cfg(feature = "v4_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
#[doc(alias = "gdk_content_formats_is_empty")]
pub fn is_empty(&self) -> bool {
unsafe { from_glib(ffi::gdk_content_formats_is_empty(self.to_glib_none().0)) }
}

#[doc(alias = "gdk_content_formats_match")]
#[doc(alias = "match")]
pub fn match_(&self, second: &ContentFormats) -> bool {
Expand Down
6 changes: 3 additions & 3 deletions gdk4/src/auto/content_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub trait ContentProviderExt: IsA<ContentProvider> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"content-changed\0".as_ptr() as *const _,
c"content-changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
content_changed_trampoline::<Self, F> as *const (),
)),
Expand All @@ -208,7 +208,7 @@ pub trait ContentProviderExt: IsA<ContentProvider> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::formats\0".as_ptr() as *const _,
c"notify::formats".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_formats_trampoline::<Self, F> as *const (),
)),
Expand All @@ -234,7 +234,7 @@ pub trait ContentProviderExt: IsA<ContentProvider> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::storable-formats\0".as_ptr() as *const _,
c"notify::storable-formats".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_storable_formats_trampoline::<Self, F> as *const (),
)),
Expand Down
22 changes: 11 additions & 11 deletions gdk4/src/auto/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"changed\0".as_ptr() as *const _,
c"changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
changed_trampoline::<Self, F> as *const (),
)),
Expand Down Expand Up @@ -244,7 +244,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"tool-changed\0".as_ptr() as *const _,
c"tool-changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
tool_changed_trampoline::<Self, F> as *const (),
)),
Expand All @@ -270,7 +270,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::caps-lock-state\0".as_ptr() as *const _,
c"notify::caps-lock-state".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_caps_lock_state_trampoline::<Self, F> as *const (),
)),
Expand All @@ -293,7 +293,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::direction\0".as_ptr() as *const _,
c"notify::direction".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_direction_trampoline::<Self, F> as *const (),
)),
Expand All @@ -319,7 +319,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::has-bidi-layouts\0".as_ptr() as *const _,
c"notify::has-bidi-layouts".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_has_bidi_layouts_trampoline::<Self, F> as *const (),
)),
Expand All @@ -345,7 +345,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::modifier-state\0".as_ptr() as *const _,
c"notify::modifier-state".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_modifier_state_trampoline::<Self, F> as *const (),
)),
Expand All @@ -368,7 +368,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::n-axes\0".as_ptr() as *const _,
c"notify::n-axes".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_n_axes_trampoline::<Self, F> as *const (),
)),
Expand All @@ -394,7 +394,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::num-lock-state\0".as_ptr() as *const _,
c"notify::num-lock-state".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_num_lock_state_trampoline::<Self, F> as *const (),
)),
Expand All @@ -420,7 +420,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::scroll-lock-state\0".as_ptr() as *const _,
c"notify::scroll-lock-state".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_scroll_lock_state_trampoline::<Self, F> as *const (),
)),
Expand All @@ -443,7 +443,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::seat\0".as_ptr() as *const _,
c"notify::seat".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_seat_trampoline::<Self, F> as *const (),
)),
Expand All @@ -466,7 +466,7 @@ pub trait DeviceExt: IsA<Device> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::tool\0".as_ptr() as *const _,
c"notify::tool".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_tool_trampoline::<Self, F> as *const (),
)),
Expand Down
20 changes: 10 additions & 10 deletions gdk4/src/auto/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"closed\0".as_ptr() as *const _,
c"closed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
closed_trampoline::<Self, F> as *const (),
)),
Expand All @@ -329,7 +329,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"opened\0".as_ptr() as *const _,
c"opened".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
opened_trampoline::<Self, F> as *const (),
)),
Expand All @@ -355,7 +355,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"seat-added\0".as_ptr() as *const _,
c"seat-added".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
seat_added_trampoline::<Self, F> as *const (),
)),
Expand Down Expand Up @@ -384,7 +384,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"seat-removed\0".as_ptr() as *const _,
c"seat-removed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
seat_removed_trampoline::<Self, F> as *const (),
)),
Expand Down Expand Up @@ -413,7 +413,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"setting-changed\0".as_ptr() as *const _,
c"setting-changed".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
setting_changed_trampoline::<Self, F> as *const (),
)),
Expand All @@ -436,7 +436,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::composited\0".as_ptr() as *const _,
c"notify::composited".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_composited_trampoline::<Self, F> as *const (),
)),
Expand Down Expand Up @@ -464,7 +464,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::dmabuf-formats\0".as_ptr() as *const _,
c"notify::dmabuf-formats".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_dmabuf_formats_trampoline::<Self, F> as *const (),
)),
Expand All @@ -490,7 +490,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::input-shapes\0".as_ptr() as *const _,
c"notify::input-shapes".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_input_shapes_trampoline::<Self, F> as *const (),
)),
Expand All @@ -513,7 +513,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::rgba\0".as_ptr() as *const _,
c"notify::rgba".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_rgba_trampoline::<Self, F> as *const (),
)),
Expand Down Expand Up @@ -541,7 +541,7 @@ pub trait DisplayExt: IsA<Display> + 'static {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::shadow-width\0".as_ptr() as *const _,
c"notify::shadow-width".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_shadow_width_trampoline::<Self, F> as *const (),
)),
Expand Down
4 changes: 2 additions & 2 deletions gdk4/src/auto/display_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl DisplayManager {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"display-opened\0".as_ptr() as *const _,
c"display-opened".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
display_opened_trampoline::<F> as *const (),
)),
Expand All @@ -109,7 +109,7 @@ impl DisplayManager {
let f: Box_<F> = Box_::new(f);
connect_raw(
self.as_ptr() as *mut _,
b"notify::default-display\0".as_ptr() as *const _,
c"notify::default-display".as_ptr() as *const _,
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
notify_default_display_trampoline::<F> as *const (),
)),
Expand Down
Loading

0 comments on commit e533055

Please sign in to comment.