Skip to content

Commit

Permalink
Merge pull request #1651 from gtk-rs/auto-pr-branch
Browse files Browse the repository at this point in the history
Automated PR: Changes from updating gir/gir-files
  • Loading branch information
sdroege authored Feb 12, 2025
2 parents 72bc300 + c6a0890 commit ad72748
Show file tree
Hide file tree
Showing 66 changed files with 158 additions and 42 deletions.
1 change: 1 addition & 0 deletions gdk-pixbuf/src/auto/pixbuf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Pixbuf, PixbufAnimation, PixbufFormat};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
4 changes: 2 additions & 2 deletions 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 @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ ced5802891b1)
1 change: 1 addition & 0 deletions gdk-pixbuf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub use gio;
pub use glib;

#[allow(clippy::too_many_arguments)]
#[allow(unused_imports)]
mod auto;

pub mod subclass;
Expand Down
4 changes: 2 additions & 2 deletions 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 @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ ced5802891b1)
1 change: 1 addition & 0 deletions gio/src/auto/action_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::ffi;
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/app_info_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::ffi;
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/app_launch_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, AppInfo, File};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
DBusConnection, File, Notification,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_auth_observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Credentials, IOStream};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
Initable,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_interface_skeleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
DBusMethodInvocation,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, DBusInterface};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_object_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, DBusInterface, DBusObject};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_object_skeleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, DBusInterfaceSkeleton, DBusMethodInvocation, DBusObject};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dbus_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Cancellable, DBusAuthObserver, DBusConnection, DBusServerFlags, Initable};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/debug_controller_dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Cancellable, DBusConnection, DBusMethodInvocation, DebugController, Initable};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/drive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
MountUnmountFlags, Volume,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/dtls_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
TlsInteraction, TlsRehandshakeMode,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/file_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, File, FileMonitorEvent};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/filename_completer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::ffi;
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[doc(alias = "GApplicationFlags")]
pub struct ApplicationFlags: u32 {
#[cfg_attr(feature = "v2_74", deprecated = "Since 2.74")]
#[doc(alias = "G_APPLICATION_FLAGS_NONE")]
const FLAGS_NONE = ffi::G_APPLICATION_FLAGS_NONE as _;
#[doc(alias = "G_APPLICATION_IS_SERVICE")]
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/list_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::ffi;
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/memory_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Initable, MemoryMonitorWarningLevel};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/menu_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, MenuAttributeIter, MenuLinkIter};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
MountUnmountFlags, Volume,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/mount_operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, AskPasswordFlags, MountOperationResult, PasswordSave};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/network_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, AsyncResult, Cancellable, Initable, NetworkConnectivity, SocketConnectable};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use crate::ResolverNameLookupFlags;
use crate::{ffi, AsyncResult, Cancellable, InetAddress, ResolverRecordType, SrvTarget};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use crate::SettingsBindFlags;
use crate::{ffi, Action, SettingsBackend, SettingsSchema};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/simple_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Action};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/socket_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::{
TlsCertificateFlags,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/socket_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
SocketProtocol, SocketType,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/socket_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, SocketConnection, SocketListener};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/threaded_socket_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, SocketConnection, SocketListener, SocketService};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/tls_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
TlsInteraction, TlsRehandshakeMode,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/unix_mount_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::ffi;
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
4 changes: 2 additions & 2 deletions gio/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 @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ ced5802891b1)
1 change: 1 addition & 0 deletions gio/src/auto/volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{
MountUnmountFlags,
};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/volume_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use crate::{ffi, Drive, Mount, Volume};
use glib::{
object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
Expand Down
2 changes: 2 additions & 0 deletions gio/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags =

pub type GApplicationFlags = c_uint;
pub const G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0;
#[cfg(feature = "v2_74")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
pub const G_APPLICATION_DEFAULT_FLAGS: GApplicationFlags = 0;
pub const G_APPLICATION_IS_SERVICE: GApplicationFlags = 1;
pub const G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2;
Expand Down
4 changes: 2 additions & 2 deletions gio/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 @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ ced5802891b1)
2 changes: 1 addition & 1 deletion gir
2 changes: 1 addition & 1 deletion gir-files
2 changes: 1 addition & 1 deletion glib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ v2_76 = ["v2_74", "glib-sys/v2_76", "gobject-sys/v2_76"]
v2_78 = ["v2_76", "glib-sys/v2_78", "gobject-sys/v2_78"]
v2_80 = ["v2_78", "glib-sys/v2_80", "gobject-sys/v2_80"]
v2_82 = ["v2_80", "glib-sys/v2_82", "gobject-sys/v2_82"]
v2_84 = ["v2_82", "glib-sys/v2_84"]
v2_84 = ["v2_82", "glib-sys/v2_84", "gobject-sys/v2_84"]
log = ["rs-log"]
log_macros = ["log"]
compiletests = []
Expand Down
4 changes: 4 additions & 0 deletions glib/gobject-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ v2_76 = ["v2_74"]
v2_78 = ["v2_74"]
v2_80 = ["v2_78"]
v2_82 = ["v2_80"]
v2_84 = ["v2_80"]

[lib]
name = "gobject_sys"
Expand Down Expand Up @@ -94,6 +95,9 @@ version = "2.80"
[package.metadata.system-deps.gobject_2_0.v2_82]
version = "2.82"

[package.metadata.system-deps.gobject_2_0.v2_84]
version = "2.83"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
Expand Down
8 changes: 7 additions & 1 deletion glib/gobject-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,9 @@ extern "C" {
g_class: gpointer,
private_size_or_offset: *mut c_int,
);
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_type_class_get(type_: GType) -> gpointer;
pub fn g_type_class_peek(type_: GType) -> gpointer;
pub fn g_type_class_peek_static(type_: GType) -> gpointer;
pub fn g_type_class_ref(type_: GType) -> gpointer;
Expand Down Expand Up @@ -1929,10 +1932,10 @@ extern "C" {
//=========================================================================
// GWeakRef
//=========================================================================
pub fn g_weak_ref_set(weak_ref: *mut GWeakRef, object: *mut GObject);
pub fn g_weak_ref_clear(weak_ref: *mut GWeakRef);
pub fn g_weak_ref_get(weak_ref: *mut GWeakRef) -> *mut GObject;
pub fn g_weak_ref_init(weak_ref: *mut GWeakRef, object: *mut GObject);
pub fn g_weak_ref_set(weak_ref: *mut GWeakRef, object: *mut GObject);

//=========================================================================
// GBinding
Expand Down Expand Up @@ -2779,6 +2782,9 @@ extern "C" {
pub fn g_type_check_value_holds(value: *const GValue, type_: GType) -> gboolean;
pub fn g_type_children(type_: GType, n_children: *mut c_uint) -> *mut GType;
pub fn g_type_create_instance(type_: GType) -> *mut GTypeInstance;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
pub fn g_type_default_interface_get(g_type: GType) -> gpointer;
pub fn g_type_default_interface_peek(g_type: GType) -> gpointer;
pub fn g_type_default_interface_ref(g_type: GType) -> gpointer;
pub fn g_type_default_interface_unref(g_iface: gpointer);
Expand Down
4 changes: 2 additions & 2 deletions glib/gobject-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 @ be3ecc201d39)
from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218)
Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3)
from gir-files (https://github.com/gtk-rs/gir-files @ ced5802891b1)
4 changes: 4 additions & 0 deletions glib/src/auto/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ bitflags! {
const OPTIONAL_ARG = ffi::G_OPTION_FLAG_OPTIONAL_ARG as _;
#[doc(alias = "G_OPTION_FLAG_NOALIAS")]
const NOALIAS = ffi::G_OPTION_FLAG_NOALIAS as _;
#[cfg(feature = "v2_84")]
#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
#[doc(alias = "G_OPTION_FLAG_DEPRECATED")]
const DEPRECATED = ffi::G_OPTION_FLAG_DEPRECATED as _;
}
}

Expand Down
Loading

0 comments on commit ad72748

Please sign in to comment.