diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4-wayland/src/wayland_surface.rs b/gdk4-wayland/src/wayland_surface.rs index ef576ee5fc55..dac615e8cc5b 100644 --- a/gdk4-wayland/src/wayland_surface.rs +++ b/gdk4-wayland/src/wayland_surface.rs @@ -11,15 +11,10 @@ use wayland_client::{backend::ObjectId, protocol::wl_surface::WlSurface, Proxy}; use crate::ffi; use crate::{prelude::*, WaylandSurface}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`WaylandSurface`](crate::WaylandSurface). -pub trait WaylandSurfaceExtManual: sealed::Sealed + IsA + 'static { +pub trait WaylandSurfaceExtManual: IsA + 'static { #[doc(alias = "gdk_wayland_surface_get_wl_surface")] #[doc(alias = "get_wl_surface")] #[cfg(feature = "wayland_crate")] diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4/src/auto/app_launch_context.rs b/gdk4/src/auto/app_launch_context.rs index 3f1414fadfa7..c3c18a945158 100644 --- a/gdk4/src/auto/app_launch_context.rs +++ b/gdk4/src/auto/app_launch_context.rs @@ -18,12 +18,7 @@ impl AppLaunchContext { pub const NONE: Option<&'static AppLaunchContext> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait GdkAppLaunchContextExt: IsA + sealed::Sealed + 'static { +pub trait GdkAppLaunchContextExt: IsA + 'static { #[doc(alias = "gdk_app_launch_context_get_display")] #[doc(alias = "get_display")] fn display(&self) -> Display { diff --git a/gdk4/src/auto/content_provider.rs b/gdk4/src/auto/content_provider.rs index 15b6ddac6f32..bea48c3f8af7 100644 --- a/gdk4/src/auto/content_provider.rs +++ b/gdk4/src/auto/content_provider.rs @@ -58,12 +58,7 @@ impl ContentProvider { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait ContentProviderExt: IsA + sealed::Sealed + 'static { +pub trait ContentProviderExt: IsA + 'static { #[doc(alias = "gdk_content_provider_content_changed")] fn content_changed(&self) { unsafe { diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index 801af520cf5d..ef71d92f8c8c 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -30,12 +30,7 @@ impl std::fmt::Display for Device { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DeviceExt: IsA + sealed::Sealed + 'static { +pub trait DeviceExt: IsA + 'static { #[doc(alias = "gdk_device_get_caps_lock_state")] #[doc(alias = "get_caps_lock_state")] #[doc(alias = "caps-lock-state")] diff --git a/gdk4/src/auto/device_pad.rs b/gdk4/src/auto/device_pad.rs index aa3d1f82bc34..d8fc78b1d54f 100644 --- a/gdk4/src/auto/device_pad.rs +++ b/gdk4/src/auto/device_pad.rs @@ -18,12 +18,7 @@ impl DevicePad { pub const NONE: Option<&'static DevicePad> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DevicePadExt: IsA + sealed::Sealed + 'static { +pub trait DevicePadExt: IsA + 'static { #[doc(alias = "gdk_device_pad_get_feature_group")] #[doc(alias = "get_feature_group")] fn feature_group(&self, feature: DevicePadFeature, feature_idx: i32) -> i32 { diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index 7cbc73e3ff92..3e165b9e25f4 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -51,12 +51,7 @@ impl std::fmt::Display for Display { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DisplayExt: IsA + sealed::Sealed + 'static { +pub trait DisplayExt: IsA + 'static { #[doc(alias = "gdk_display_beep")] fn beep(&self) { unsafe { diff --git a/gdk4/src/auto/drag.rs b/gdk4/src/auto/drag.rs index 5a56e9f51678..d003ec28bd05 100644 --- a/gdk4/src/auto/drag.rs +++ b/gdk4/src/auto/drag.rs @@ -47,12 +47,7 @@ impl Drag { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DragExt: IsA + sealed::Sealed + 'static { +pub trait DragExt: IsA + 'static { #[doc(alias = "gdk_drag_drop_done")] fn drop_done(&self, success: bool) { unsafe { diff --git a/gdk4/src/auto/drag_surface.rs b/gdk4/src/auto/drag_surface.rs index 51097bd3be91..4edbc5738a74 100644 --- a/gdk4/src/auto/drag_surface.rs +++ b/gdk4/src/auto/drag_surface.rs @@ -18,12 +18,7 @@ impl DragSurface { pub const NONE: Option<&'static DragSurface> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DragSurfaceExt: IsA + sealed::Sealed + 'static { +pub trait DragSurfaceExt: IsA + 'static { #[doc(alias = "gdk_drag_surface_present")] fn present(&self, width: i32, height: i32) -> bool { unsafe { diff --git a/gdk4/src/auto/draw_context.rs b/gdk4/src/auto/draw_context.rs index 8bdf901dcd53..d4bfb8ea214b 100644 --- a/gdk4/src/auto/draw_context.rs +++ b/gdk4/src/auto/draw_context.rs @@ -18,12 +18,7 @@ impl DrawContext { pub const NONE: Option<&'static DrawContext> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait DrawContextExt: IsA + sealed::Sealed + 'static { +pub trait DrawContextExt: IsA + 'static { #[doc(alias = "gdk_draw_context_begin_frame")] fn begin_frame(&self, region: &cairo::Region) { unsafe { diff --git a/gdk4/src/auto/gl_context.rs b/gdk4/src/auto/gl_context.rs index 4851b72983fd..7337fdc51ef5 100644 --- a/gdk4/src/auto/gl_context.rs +++ b/gdk4/src/auto/gl_context.rs @@ -43,12 +43,7 @@ impl GLContext { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait GLContextExt: IsA + sealed::Sealed + 'static { +pub trait GLContextExt: IsA + 'static { #[cfg(feature = "v4_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] #[doc(alias = "gdk_gl_context_get_allowed_apis")] diff --git a/gdk4/src/auto/monitor.rs b/gdk4/src/auto/monitor.rs index f25a2e562498..bf0d16447751 100644 --- a/gdk4/src/auto/monitor.rs +++ b/gdk4/src/auto/monitor.rs @@ -23,12 +23,7 @@ impl Monitor { pub const NONE: Option<&'static Monitor> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait MonitorExt: IsA + sealed::Sealed + 'static { +pub trait MonitorExt: IsA + 'static { #[doc(alias = "gdk_monitor_get_connector")] #[doc(alias = "get_connector")] fn connector(&self) -> Option { diff --git a/gdk4/src/auto/paintable.rs b/gdk4/src/auto/paintable.rs index e36d2fc7ef24..04f4a43dc02f 100644 --- a/gdk4/src/auto/paintable.rs +++ b/gdk4/src/auto/paintable.rs @@ -34,12 +34,7 @@ impl Paintable { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait PaintableExt: IsA + sealed::Sealed + 'static { +pub trait PaintableExt: IsA + 'static { #[doc(alias = "gdk_paintable_compute_concrete_size")] fn compute_concrete_size( &self, diff --git a/gdk4/src/auto/popup.rs b/gdk4/src/auto/popup.rs index 55a86763f5b2..626bb7281297 100644 --- a/gdk4/src/auto/popup.rs +++ b/gdk4/src/auto/popup.rs @@ -18,12 +18,7 @@ impl Popup { pub const NONE: Option<&'static Popup> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait PopupExt: IsA + sealed::Sealed + 'static { +pub trait PopupExt: IsA + 'static { #[doc(alias = "gdk_popup_get_autohide")] #[doc(alias = "get_autohide")] #[doc(alias = "autohide")] diff --git a/gdk4/src/auto/seat.rs b/gdk4/src/auto/seat.rs index eb55df9ec4b7..02f29335687d 100644 --- a/gdk4/src/auto/seat.rs +++ b/gdk4/src/auto/seat.rs @@ -23,12 +23,7 @@ impl Seat { pub const NONE: Option<&'static Seat> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait SeatExt: IsA + sealed::Sealed + 'static { +pub trait SeatExt: IsA + 'static { #[doc(alias = "gdk_seat_get_capabilities")] #[doc(alias = "get_capabilities")] fn capabilities(&self) -> SeatCapabilities { diff --git a/gdk4/src/auto/surface.rs b/gdk4/src/auto/surface.rs index dcc18c5d2858..3a30fe6cba73 100644 --- a/gdk4/src/auto/surface.rs +++ b/gdk4/src/auto/surface.rs @@ -48,12 +48,7 @@ impl Surface { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait SurfaceExt: IsA + sealed::Sealed + 'static { +pub trait SurfaceExt: IsA + 'static { #[doc(alias = "gdk_surface_beep")] fn beep(&self) { unsafe { diff --git a/gdk4/src/auto/texture.rs b/gdk4/src/auto/texture.rs index 7ddd9db55a5c..d0d5880a1446 100644 --- a/gdk4/src/auto/texture.rs +++ b/gdk4/src/auto/texture.rs @@ -92,12 +92,7 @@ impl Texture { unsafe impl Send for Texture {} unsafe impl Sync for Texture {} -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait TextureExt: IsA + sealed::Sealed + 'static { +pub trait TextureExt: IsA + 'static { #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gdk_texture_get_format")] diff --git a/gdk4/src/auto/toplevel.rs b/gdk4/src/auto/toplevel.rs index 033b73d58239..2e418a207652 100644 --- a/gdk4/src/auto/toplevel.rs +++ b/gdk4/src/auto/toplevel.rs @@ -29,12 +29,7 @@ impl Toplevel { pub const NONE: Option<&'static Toplevel> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait ToplevelExt: IsA + sealed::Sealed + 'static { +pub trait ToplevelExt: IsA + 'static { #[doc(alias = "gdk_toplevel_begin_move")] fn begin_move(&self, device: &impl IsA, button: i32, x: f64, y: f64, timestamp: u32) { unsafe { diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gdk4/src/content_provider.rs b/gdk4/src/content_provider.rs index cb4c909cbd7a..2009a831d48e 100644 --- a/gdk4/src/content_provider.rs +++ b/gdk4/src/content_provider.rs @@ -4,15 +4,10 @@ use glib::translate::*; use crate::{ffi, prelude::*, ContentProvider}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`ContentProvider`](crate::ContentProvider). -pub trait ContentProviderExtManual: sealed::Sealed + IsA { +pub trait ContentProviderExtManual: IsA { #[doc(alias = "gdk_content_provider_get_value")] fn value(&self, type_: glib::Type) -> Result { unsafe { diff --git a/gdk4/src/display.rs b/gdk4/src/display.rs index ddbfa2627746..4225cf25ae8a 100644 --- a/gdk4/src/display.rs +++ b/gdk4/src/display.rs @@ -50,15 +50,10 @@ impl Backend { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Display`](crate::Display). -pub trait DisplayExtManual: sealed::Sealed + IsA + 'static { +pub trait DisplayExtManual: IsA + 'static { #[doc(alias = "gdk_display_translate_key")] fn translate_key( &self, diff --git a/gdk4/src/drag_surface.rs b/gdk4/src/drag_surface.rs index c29cb6cc3562..489ab4b8530a 100644 --- a/gdk4/src/drag_surface.rs +++ b/gdk4/src/drag_surface.rs @@ -9,15 +9,10 @@ use glib::{ use crate::{ffi, prelude::*, DragSurface, DragSurfaceSize}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`DragSurface`](crate::DragSurface). -pub trait DragSurfaceExtManual: sealed::Sealed + IsA { +pub trait DragSurfaceExtManual: IsA { #[cfg(feature = "v4_12")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] #[doc(alias = "compute-size")] diff --git a/gdk4/src/draw_context.rs b/gdk4/src/draw_context.rs index dc8c3bc38268..282721a73e33 100644 --- a/gdk4/src/draw_context.rs +++ b/gdk4/src/draw_context.rs @@ -4,15 +4,10 @@ use glib::translate::*; use crate::{prelude::*, DrawContext}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`DrawContext`](crate::DrawContext). -pub trait DrawContextExtManual: sealed::Sealed + IsA + 'static { +pub trait DrawContextExtManual: IsA + 'static { #[doc(alias = "gdk_draw_context_get_frame_region")] #[doc(alias = "get_frame_region")] fn frame_region(&self) -> Option { diff --git a/gdk4/src/surface.rs b/gdk4/src/surface.rs index 71e506cb5eda..caaee31e495f 100644 --- a/gdk4/src/surface.rs +++ b/gdk4/src/surface.rs @@ -4,15 +4,10 @@ use glib::translate::*; use crate::{ffi, prelude::*, Surface}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Surface`](crate::Surface). -pub trait SurfaceExtManual: sealed::Sealed + IsA + 'static { +pub trait SurfaceExtManual: IsA + 'static { #[doc(alias = "gdk_surface_create_similar_surface")] fn create_similar_surface( &self, diff --git a/gdk4/src/texture.rs b/gdk4/src/texture.rs index a44dbbda5eaf..3f4932528bd1 100644 --- a/gdk4/src/texture.rs +++ b/gdk4/src/texture.rs @@ -4,15 +4,10 @@ use glib::translate::*; use crate::{ffi, prelude::*, Texture}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Texture`](crate::Texture). -pub trait TextureExtManual: sealed::Sealed + IsA + 'static { +pub trait TextureExtManual: IsA + 'static { #[doc(alias = "gdk_texture_download")] fn download(&self, data: &mut [u8], stride: usize) { unsafe { diff --git a/gdk4/src/toplevel.rs b/gdk4/src/toplevel.rs index 57ae5b4c755e..d5568ba1be84 100644 --- a/gdk4/src/toplevel.rs +++ b/gdk4/src/toplevel.rs @@ -9,15 +9,10 @@ use glib::{ use crate::{ffi, prelude::*, Toplevel, ToplevelSize}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Toplevel`](crate::Toplevel). -pub trait ToplevelExtManual: sealed::Sealed + IsA { +pub trait ToplevelExtManual: IsA { fn connect_compute_size( &self, f: F, diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gir b/gir index a11b11f2e403..eff839d4745d 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit a11b11f2e403d615edd94497b6fe5b3c5283145b +Subproject commit eff839d4745d5eb210834507c2a9598741ad2e54 diff --git a/gsk4/src/auto/renderer.rs b/gsk4/src/auto/renderer.rs index ea9d7d2f76f7..7025bdfea9a9 100644 --- a/gsk4/src/auto/renderer.rs +++ b/gsk4/src/auto/renderer.rs @@ -30,12 +30,7 @@ impl Renderer { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait GskRendererExt: IsA + sealed::Sealed + 'static { +pub trait GskRendererExt: IsA + 'static { #[doc(alias = "gsk_renderer_get_surface")] #[doc(alias = "get_surface")] fn surface(&self) -> Option { diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index f8c9324cb5db..0a416aa18620 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ a11b11f2e403) +Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d) from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd) diff --git a/gtk4/src/accessible.rs b/gtk4/src/accessible.rs index 291cd5bae833..87c5e384ef55 100644 --- a/gtk4/src/accessible.rs +++ b/gtk4/src/accessible.rs @@ -7,11 +7,6 @@ use crate::{ AccessibleProperty, AccessibleRelation, AccessibleSort, AccessibleState, AccessibleTristate, Orientation, }; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Accessible`](crate::Accessible). @@ -30,7 +25,7 @@ mod sealed { /// gtk::AccessibleInvalidState::Grammar, /// )]); /// ``` -pub trait AccessibleExtManual: sealed::Sealed + IsA { +pub trait AccessibleExtManual: IsA { #[doc(alias = "gtk_accessible_update_property")] #[doc(alias = "gtk_accessible_update_property_value")] fn update_property(&self, properties: &[Property]) { diff --git a/gtk4/src/actionable.rs b/gtk4/src/actionable.rs index a5c7574fc8e3..5524b54e72db 100644 --- a/gtk4/src/actionable.rs +++ b/gtk4/src/actionable.rs @@ -4,15 +4,10 @@ use glib::{translate::*, Variant}; use crate::{prelude::*, Actionable}; -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - // rustdoc-stripper-ignore-next /// Trait containing manually implemented methods of /// [`Actionable`](crate::Actionable). -pub trait ActionableExtManual: sealed::Sealed + IsA + 'static { +pub trait ActionableExtManual: IsA + 'static { #[doc(alias = "gtk_actionable_set_action_target")] #[doc(alias = "gtk_actionable_set_action_target_value")] fn set_action_target(&self, target: Option>) { diff --git a/gtk4/src/auto/accessible.rs b/gtk4/src/auto/accessible.rs index f2c4bd93f1f0..8b971495683d 100644 --- a/gtk4/src/auto/accessible.rs +++ b/gtk4/src/auto/accessible.rs @@ -29,12 +29,7 @@ impl Accessible { pub const NONE: Option<&'static Accessible> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait AccessibleExt: IsA + sealed::Sealed + 'static { +pub trait AccessibleExt: IsA + 'static { #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] #[doc(alias = "gtk_accessible_announce")] diff --git a/gtk4/src/auto/accessible_range.rs b/gtk4/src/auto/accessible_range.rs index bd1afac158b1..c371bddf8396 100644 --- a/gtk4/src/auto/accessible_range.rs +++ b/gtk4/src/auto/accessible_range.rs @@ -18,11 +18,6 @@ impl AccessibleRange { pub const NONE: Option<&'static AccessibleRange> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait AccessibleRangeExt: IsA + sealed::Sealed + 'static {} +pub trait AccessibleRangeExt: IsA + 'static {} impl> AccessibleRangeExt for O {} diff --git a/gtk4/src/auto/accessible_text.rs b/gtk4/src/auto/accessible_text.rs index c7614d927723..ca3969f87686 100644 --- a/gtk4/src/auto/accessible_text.rs +++ b/gtk4/src/auto/accessible_text.rs @@ -18,12 +18,7 @@ impl AccessibleText { pub const NONE: Option<&'static AccessibleText> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait AccessibleTextExt: IsA + sealed::Sealed + 'static { +pub trait AccessibleTextExt: IsA + 'static { #[doc(alias = "gtk_accessible_text_update_caret_position")] fn update_caret_position(&self) { unsafe { diff --git a/gtk4/src/auto/actionable.rs b/gtk4/src/auto/actionable.rs index eaaa0c6892d6..b2848705be46 100644 --- a/gtk4/src/auto/actionable.rs +++ b/gtk4/src/auto/actionable.rs @@ -23,12 +23,7 @@ impl Actionable { pub const NONE: Option<&'static Actionable> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait ActionableExt: IsA + sealed::Sealed + 'static { +pub trait ActionableExt: IsA + 'static { #[doc(alias = "gtk_actionable_get_action_name")] #[doc(alias = "get_action_name")] #[doc(alias = "action-name")] diff --git a/gtk4/src/auto/adjustment.rs b/gtk4/src/auto/adjustment.rs index 6130ed76a763..66a0a96126a0 100644 --- a/gtk4/src/auto/adjustment.rs +++ b/gtk4/src/auto/adjustment.rs @@ -119,12 +119,7 @@ impl AdjustmentBuilder { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait AdjustmentExt: IsA + sealed::Sealed + 'static { +pub trait AdjustmentExt: IsA + 'static { #[doc(alias = "gtk_adjustment_clamp_page")] fn clamp_page(&self, lower: f64, upper: f64) { unsafe { diff --git a/gtk4/src/auto/app_chooser.rs b/gtk4/src/auto/app_chooser.rs index c1da8ae02782..862bfa57a4d1 100644 --- a/gtk4/src/auto/app_chooser.rs +++ b/gtk4/src/auto/app_chooser.rs @@ -19,12 +19,7 @@ impl AppChooser { pub const NONE: Option<&'static AppChooser> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait AppChooserExt: IsA + sealed::Sealed + 'static { +pub trait AppChooserExt: IsA + 'static { #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] #[doc(alias = "gtk_app_chooser_get_app_info")] diff --git a/gtk4/src/auto/application.rs b/gtk4/src/auto/application.rs index 2e4b80077610..5e58259f827d 100644 --- a/gtk4/src/auto/application.rs +++ b/gtk4/src/auto/application.rs @@ -109,12 +109,7 @@ impl ApplicationBuilder { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait GtkApplicationExt: IsA + sealed::Sealed + 'static { +pub trait GtkApplicationExt: IsA + 'static { #[doc(alias = "gtk_application_add_window")] fn add_window(&self, window: &impl IsA) { unsafe { diff --git a/gtk4/src/auto/application_window.rs b/gtk4/src/auto/application_window.rs index 28cc73ccd067..122b8231b08a 100644 --- a/gtk4/src/auto/application_window.rs +++ b/gtk4/src/auto/application_window.rs @@ -421,12 +421,7 @@ impl ApplicationWindowBuilder { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait ApplicationWindowExt: IsA + sealed::Sealed + 'static { +pub trait ApplicationWindowExt: IsA + 'static { #[doc(alias = "gtk_application_window_get_help_overlay")] #[doc(alias = "get_help_overlay")] fn help_overlay(&self) -> Option { diff --git a/gtk4/src/auto/box_.rs b/gtk4/src/auto/box_.rs index 178ae7d4e2f5..fcac20fd7145 100644 --- a/gtk4/src/auto/box_.rs +++ b/gtk4/src/auto/box_.rs @@ -290,12 +290,7 @@ impl BoxBuilder { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait BoxExt: IsA + sealed::Sealed + 'static { +pub trait BoxExt: IsA + 'static { #[doc(alias = "gtk_box_append")] fn append(&self, child: &impl IsA) { unsafe { diff --git a/gtk4/src/auto/buildable.rs b/gtk4/src/auto/buildable.rs index c30bc7f67554..4b3060a53d76 100644 --- a/gtk4/src/auto/buildable.rs +++ b/gtk4/src/auto/buildable.rs @@ -18,12 +18,7 @@ impl Buildable { pub const NONE: Option<&'static Buildable> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait BuildableExt: IsA + sealed::Sealed + 'static { +pub trait BuildableExt: IsA + 'static { #[doc(alias = "gtk_buildable_get_buildable_id")] #[doc(alias = "get_buildable_id")] fn buildable_id(&self) -> Option { diff --git a/gtk4/src/auto/builder_scope.rs b/gtk4/src/auto/builder_scope.rs index 6b6e8bbacd96..3c611b1a1f6a 100644 --- a/gtk4/src/auto/builder_scope.rs +++ b/gtk4/src/auto/builder_scope.rs @@ -18,11 +18,6 @@ impl BuilderScope { pub const NONE: Option<&'static BuilderScope> = None; } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait BuilderScopeExt: IsA + sealed::Sealed + 'static {} +pub trait BuilderScopeExt: IsA + 'static {} impl> BuilderScopeExt for O {} diff --git a/gtk4/src/auto/button.rs b/gtk4/src/auto/button.rs index 9e48632d209c..5f25ae8d8d94 100644 --- a/gtk4/src/auto/button.rs +++ b/gtk4/src/auto/button.rs @@ -338,12 +338,7 @@ impl ButtonBuilder { } } -mod sealed { - pub trait Sealed {} - impl> Sealed for T {} -} - -pub trait ButtonExt: IsA