Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions gdk-pixbuf/src/auto/pixbuf_animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ impl PixbufAnimation {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::PixbufAnimation>> Sealed for T {}
}

pub trait PixbufAnimationExt: IsA<PixbufAnimation> + sealed::Sealed + 'static {
pub trait PixbufAnimationExt: IsA<PixbufAnimation> + 'static {
#[doc(alias = "gdk_pixbuf_animation_get_height")]
#[doc(alias = "get_height")]
fn height(&self) -> i32 {
Expand Down
7 changes: 1 addition & 6 deletions gdk-pixbuf/src/auto/pixbuf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ impl Default for PixbufLoader {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::PixbufLoader>> Sealed for T {}
}

pub trait PixbufLoaderExt: IsA<PixbufLoader> + sealed::Sealed + 'static {
pub trait PixbufLoaderExt: IsA<PixbufLoader> + 'static {
#[doc(alias = "gdk_pixbuf_loader_close")]
fn close(&self) -> Result<(), glib::Error> {
unsafe {
Expand Down
2 changes: 1 addition & 1 deletion gdk-pixbuf/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 @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70)
7 changes: 1 addition & 6 deletions gdk-pixbuf/src/pixbuf_animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ use glib::{prelude::*, translate::*};

use crate::{ffi, PixbufAnimation, PixbufAnimationIter};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::PixbufAnimation>> Sealed for T {}
}

pub trait PixbufAnimationExtManual: sealed::Sealed + IsA<PixbufAnimation> + 'static {
pub trait PixbufAnimationExtManual: IsA<PixbufAnimation> + 'static {
#[doc(alias = "gdk_pixbuf_animation_get_iter")]
#[doc(alias = "get_iter")]
fn iter(&self, start_time: Option<SystemTime>) -> PixbufAnimationIter {
Expand Down
2 changes: 1 addition & 1 deletion gdk-pixbuf/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 @ a11b11f2e403)
Generated by gir (https://github.com/gtk-rs/gir @ eff839d4745d)
from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70)
8 changes: 1 addition & 7 deletions gio/src/action_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
use glib::{clone, prelude::*};

use crate::{prelude::*, ActionEntry, ActionMap, SimpleAction};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ActionMap>> Sealed for T {}
}

pub trait ActionMapExtManual: sealed::Sealed + IsA<ActionMap> {
pub trait ActionMapExtManual: IsA<ActionMap> {
#[doc(alias = "g_action_map_add_action_entries")]
fn add_action_entries(&self, entries: impl IntoIterator<Item = ActionEntry<Self>>) {
for entry in entries.into_iter() {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/app_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ use glib::translate::*;

use crate::{ffi, AppInfo, AppLaunchContext, Cancellable};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AppInfo>> Sealed for T {}
}

pub trait AppInfoExtManual: sealed::Sealed + IsA<AppInfo> + 'static {
pub trait AppInfoExtManual: IsA<AppInfo> + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
#[doc(alias = "g_app_info_launch_uris_async")]
fn launch_uris_async<
Expand Down
7 changes: 1 addition & 6 deletions gio/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ use glib::{

use crate::{ffi, Application, File};

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Application>> Sealed for T {}
}

pub trait ApplicationExtManual: sealed::Sealed + IsA<Application> {
pub trait ApplicationExtManual: IsA<Application> {
#[doc(alias = "g_application_run")]
fn run(&self) -> ExitCode {
self.run_with_args(&std::env::args().collect::<Vec<_>>())
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ impl Action {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Action>> Sealed for T {}
}

pub trait ActionExt: IsA<Action> + sealed::Sealed + 'static {
pub trait ActionExt: IsA<Action> + 'static {
#[doc(alias = "g_action_activate")]
fn activate(&self, parameter: Option<&glib::Variant>) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/action_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ impl ActionGroup {
pub const NONE: Option<&'static ActionGroup> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ActionGroup>> Sealed for T {}
}

pub trait ActionGroupExt: IsA<ActionGroup> + sealed::Sealed + 'static {
pub trait ActionGroupExt: IsA<ActionGroup> + 'static {
#[doc(alias = "g_action_group_action_added")]
fn action_added(&self, action_name: &str) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/action_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl ActionMap {
pub const NONE: Option<&'static ActionMap> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ActionMap>> Sealed for T {}
}

pub trait ActionMapExt: IsA<ActionMap> + sealed::Sealed + 'static {
pub trait ActionMapExt: IsA<ActionMap> + 'static {
#[doc(alias = "g_action_map_add_action")]
fn add_action(&self, action: &impl IsA<Action>) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/app_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,7 @@ impl AppInfo {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AppInfo>> Sealed for T {}
}

pub trait AppInfoExt: IsA<AppInfo> + sealed::Sealed + 'static {
pub trait AppInfoExt: IsA<AppInfo> + 'static {
#[doc(alias = "g_app_info_add_supports_type")]
fn add_supports_type(&self, content_type: &str) -> Result<(), glib::Error> {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/app_launch_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ impl Default for AppLaunchContext {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AppLaunchContext>> Sealed for T {}
}

pub trait AppLaunchContextExt: IsA<AppLaunchContext> + sealed::Sealed + 'static {
pub trait AppLaunchContextExt: IsA<AppLaunchContext> + 'static {
#[doc(alias = "g_app_launch_context_get_display")]
#[doc(alias = "get_display")]
fn display(&self, info: &impl IsA<AppInfo>, files: &[File]) -> Option<glib::GString> {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ impl ApplicationBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Application>> Sealed for T {}
}

pub trait ApplicationExt: IsA<Application> + sealed::Sealed + 'static {
pub trait ApplicationExt: IsA<Application> + 'static {
#[doc(alias = "g_application_activate")]
fn activate(&self) {
unsafe {
Expand Down
9 changes: 1 addition & 8 deletions gio/src/auto/application_command_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ impl ApplicationCommandLine {
pub const NONE: Option<&'static ApplicationCommandLine> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ApplicationCommandLine>> Sealed for T {}
}

pub trait ApplicationCommandLineExt:
IsA<ApplicationCommandLine> + sealed::Sealed + 'static
{
pub trait ApplicationCommandLineExt: IsA<ApplicationCommandLine> + 'static {
#[doc(alias = "g_application_command_line_create_file_for_arg")]
fn create_file_for_arg(&self, arg: impl AsRef<std::ffi::OsStr>) -> File {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/async_initable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ impl AsyncInitable {
pub const NONE: Option<&'static AsyncInitable> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AsyncInitable>> Sealed for T {}
}

pub trait AsyncInitableExt: IsA<AsyncInitable> + sealed::Sealed + 'static {
pub trait AsyncInitableExt: IsA<AsyncInitable> + 'static {
#[doc(alias = "g_async_initable_init_async")]
unsafe fn init_async<P: FnOnce(Result<(), glib::Error>) + 'static>(
&self,
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/async_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl AsyncResult {
pub const NONE: Option<&'static AsyncResult> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AsyncResult>> Sealed for T {}
}

pub trait AsyncResultExt: IsA<AsyncResult> + sealed::Sealed + 'static {
pub trait AsyncResultExt: IsA<AsyncResult> + 'static {
#[doc(alias = "g_async_result_get_source_object")]
#[doc(alias = "get_source_object")]
fn source_object(&self) -> Option<glib::Object> {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/buffered_input_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ impl BufferedInputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::BufferedInputStream>> Sealed for T {}
}

pub trait BufferedInputStreamExt: IsA<BufferedInputStream> + sealed::Sealed + 'static {
pub trait BufferedInputStreamExt: IsA<BufferedInputStream> + 'static {
#[doc(alias = "g_buffered_input_stream_fill")]
fn fill(
&self,
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/buffered_output_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,7 @@ impl BufferedOutputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::BufferedOutputStream>> Sealed for T {}
}

pub trait BufferedOutputStreamExt: IsA<BufferedOutputStream> + sealed::Sealed + 'static {
pub trait BufferedOutputStreamExt: IsA<BufferedOutputStream> + 'static {
#[doc(alias = "g_buffered_output_stream_get_auto_grow")]
#[doc(alias = "get_auto_grow")]
#[doc(alias = "auto-grow")]
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/cancellable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ impl Default for Cancellable {
unsafe impl Send for Cancellable {}
unsafe impl Sync for Cancellable {}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Cancellable>> Sealed for T {}
}

pub trait CancellableExt: IsA<Cancellable> + sealed::Sealed + 'static {
pub trait CancellableExt: IsA<Cancellable> + 'static {
#[doc(alias = "g_cancellable_cancel")]
fn cancel(&self) {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl Converter {
pub const NONE: Option<&'static Converter> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::Converter>> Sealed for T {}
}

pub trait ConverterExt: IsA<Converter> + sealed::Sealed + 'static {
pub trait ConverterExt: IsA<Converter> + 'static {
#[cfg(feature = "v2_82")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
#[doc(alias = "g_converter_convert_bytes")]
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/converter_input_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ impl ConverterInputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ConverterInputStream>> Sealed for T {}
}

pub trait ConverterInputStreamExt: IsA<ConverterInputStream> + sealed::Sealed + 'static {
pub trait ConverterInputStreamExt: IsA<ConverterInputStream> + 'static {
#[doc(alias = "g_converter_input_stream_get_converter")]
#[doc(alias = "get_converter")]
fn converter(&self) -> Converter {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/converter_output_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ impl ConverterOutputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::ConverterOutputStream>> Sealed for T {}
}

pub trait ConverterOutputStreamExt: IsA<ConverterOutputStream> + sealed::Sealed + 'static {
pub trait ConverterOutputStreamExt: IsA<ConverterOutputStream> + 'static {
#[doc(alias = "g_converter_output_stream_get_converter")]
#[doc(alias = "get_converter")]
fn converter(&self) -> Converter {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/data_input_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@ impl DataInputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DataInputStream>> Sealed for T {}
}

pub trait DataInputStreamExt: IsA<DataInputStream> + sealed::Sealed + 'static {
pub trait DataInputStreamExt: IsA<DataInputStream> + 'static {
#[doc(alias = "g_data_input_stream_get_byte_order")]
#[doc(alias = "get_byte_order")]
#[doc(alias = "byte-order")]
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/data_output_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ impl DataOutputStreamBuilder {
}
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DataOutputStream>> Sealed for T {}
}

pub trait DataOutputStreamExt: IsA<DataOutputStream> + sealed::Sealed + 'static {
pub trait DataOutputStreamExt: IsA<DataOutputStream> + 'static {
#[doc(alias = "g_data_output_stream_get_byte_order")]
#[doc(alias = "get_byte_order")]
#[doc(alias = "byte-order")]
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/datagram_based.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl DatagramBased {
pub const NONE: Option<&'static DatagramBased> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DatagramBased>> Sealed for T {}
}

pub trait DatagramBasedExt: IsA<DatagramBased> + sealed::Sealed + 'static {
pub trait DatagramBasedExt: IsA<DatagramBased> + 'static {
#[doc(alias = "g_datagram_based_condition_check")]
fn condition_check(&self, condition: glib::IOCondition) -> glib::IOCondition {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/dbus_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ impl DBusInterface {
pub const NONE: Option<&'static DBusInterface> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DBusInterface>> Sealed for T {}
}

pub trait DBusInterfaceExt: IsA<DBusInterface> + sealed::Sealed + 'static {
pub trait DBusInterfaceExt: IsA<DBusInterface> + 'static {
#[doc(alias = "g_dbus_interface_dup_object")]
#[doc(alias = "dup_object")]
fn get(&self) -> Option<DBusObject> {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/dbus_interface_skeleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ impl DBusInterfaceSkeleton {
pub const NONE: Option<&'static DBusInterfaceSkeleton> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DBusInterfaceSkeleton>> Sealed for T {}
}

pub trait DBusInterfaceSkeletonExt: IsA<DBusInterfaceSkeleton> + sealed::Sealed + 'static {
pub trait DBusInterfaceSkeletonExt: IsA<DBusInterfaceSkeleton> + 'static {
#[doc(alias = "g_dbus_interface_skeleton_export")]
fn export(&self, connection: &DBusConnection, object_path: &str) -> Result<(), glib::Error> {
unsafe {
Expand Down
7 changes: 1 addition & 6 deletions gio/src/auto/dbus_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ impl DBusObject {
pub const NONE: Option<&'static DBusObject> = None;
}

mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::DBusObject>> Sealed for T {}
}

pub trait DBusObjectExt: IsA<DBusObject> + sealed::Sealed + 'static {
pub trait DBusObjectExt: IsA<DBusObject> + 'static {
#[doc(alias = "g_dbus_object_get_interface")]
#[doc(alias = "get_interface")]
fn interface(&self, interface_name: &str) -> Option<DBusInterface> {
Expand Down
Loading
Loading