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
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
conf:
- { name: "cairo", features: "png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface", nightly: "--features 'png,pdf,svg,ps,use_glib,v1_18,freetype,script,xcb,xlib,win32-surface'", test_sys: true }
- { name: "gdk-pixbuf", features: "v2_42", nightly: "--all-features", test_sys: true }
- { name: "gio", features: "v2_74", nightly: "--all-features", test_sys: false }
- { name: "glib", features: "v2_74", nightly: "--all-features", test_sys: false }
- { name: "gio", features: "v2_74", nightly: "--all-features", test_sys: true }
- { name: "glib", features: "v2_74", nightly: "--all-features", test_sys: true }
- { name: "graphene", features: "", nightly: "", test_sys: true }
- { name: "pango", features: "v1_50", nightly: "--all-features", test_sys: false }
- { name: "pango", features: "v1_50", nightly: "--all-features", test_sys: true }
- { name: "pangocairo", features: "", nightly: "--all-features", test_sys: true }
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions gdk-pixbuf/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ pub enum PixbufAlphaMode {
__Unknown(i32),
}

#[allow(deprecated)]
impl fmt::Display for PixbufAlphaMode {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
Expand All @@ -221,6 +222,7 @@ impl fmt::Display for PixbufAlphaMode {
}
}

#[allow(deprecated)]
#[doc(hidden)]
impl IntoGlib for PixbufAlphaMode {
type GlibType = ffi::GdkPixbufAlphaMode;
Expand All @@ -234,6 +236,7 @@ impl IntoGlib for PixbufAlphaMode {
}
}

#[allow(deprecated)]
#[doc(hidden)]
impl FromGlib<ffi::GdkPixbufAlphaMode> for PixbufAlphaMode {
unsafe fn from_glib(value: ffi::GdkPixbufAlphaMode) -> Self {
Expand All @@ -245,16 +248,19 @@ impl FromGlib<ffi::GdkPixbufAlphaMode> for PixbufAlphaMode {
}
}

#[allow(deprecated)]
impl StaticType for PixbufAlphaMode {
fn static_type() -> Type {
unsafe { from_glib(ffi::gdk_pixbuf_alpha_mode_get_type()) }
}
}

#[allow(deprecated)]
impl glib::value::ValueType for PixbufAlphaMode {
type Type = Self;
}

#[allow(deprecated)]
unsafe impl<'a> FromValue<'a> for PixbufAlphaMode {
type Checker = glib::value::GenericValueTypeChecker<Self>;

Expand All @@ -263,6 +269,7 @@ unsafe impl<'a> FromValue<'a> for PixbufAlphaMode {
}
}

#[allow(deprecated)]
impl ToValue for PixbufAlphaMode {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
Expand All @@ -277,6 +284,7 @@ impl ToValue for PixbufAlphaMode {
}
}

#[allow(deprecated)]
impl From<PixbufAlphaMode> for glib::Value {
#[inline]
fn from(v: PixbufAlphaMode) -> Self {
Expand Down
1 change: 1 addition & 0 deletions gdk-pixbuf/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub use self::pixbuf_format::PixbufFormat;
mod enums;
pub use self::enums::Colorspace;
pub use self::enums::InterpType;
#[allow(deprecated)]
pub use self::enums::PixbufAlphaMode;
pub use self::enums::PixbufError;
pub use self::enums::PixbufRotation;
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 @ 0eeebbdf9d4d)
from gir-files (https://github.com/gtk-rs/gir-files @ d8382a5920b8)
Generated by gir (https://github.com/gtk-rs/gir @ 6ec1537f60e3)
from gir-files (https://github.com/gtk-rs/gir-files @ 4c173afc6395)
4 changes: 2 additions & 2 deletions gdk-pixbuf/sys/tests/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

#![cfg(target_os = "linux")]

use gdk_pixbuf_sys::*;
use std::env;
use std::error::Error;
Expand Down Expand Up @@ -110,7 +112,6 @@ impl Results {
}

#[test]
#[cfg(target_os = "linux")]
fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new();

Expand Down Expand Up @@ -145,7 +146,6 @@ fn cross_validate_constants_with_c() {
}

#[test]
#[cfg(target_os = "linux")]
fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new();

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 @ 0eeebbdf9d4d)
from gir-files (https://github.com/gtk-rs/gir-files @ d8382a5920b8)
Generated by gir (https://github.com/gtk-rs/gir @ 6ec1537f60e3)
from gir-files (https://github.com/gtk-rs/gir-files @ 4c173afc6395)
8 changes: 8 additions & 0 deletions gio/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4043,6 +4043,7 @@ pub enum TlsRehandshakeMode {
__Unknown(i32),
}

#[allow(deprecated)]
impl fmt::Display for TlsRehandshakeMode {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
Expand All @@ -4058,6 +4059,7 @@ impl fmt::Display for TlsRehandshakeMode {
}
}

#[allow(deprecated)]
#[doc(hidden)]
impl IntoGlib for TlsRehandshakeMode {
type GlibType = ffi::GTlsRehandshakeMode;
Expand All @@ -4072,6 +4074,7 @@ impl IntoGlib for TlsRehandshakeMode {
}
}

#[allow(deprecated)]
#[doc(hidden)]
impl FromGlib<ffi::GTlsRehandshakeMode> for TlsRehandshakeMode {
unsafe fn from_glib(value: ffi::GTlsRehandshakeMode) -> Self {
Expand All @@ -4084,16 +4087,19 @@ impl FromGlib<ffi::GTlsRehandshakeMode> for TlsRehandshakeMode {
}
}

#[allow(deprecated)]
impl StaticType for TlsRehandshakeMode {
fn static_type() -> Type {
unsafe { from_glib(ffi::g_tls_rehandshake_mode_get_type()) }
}
}

#[allow(deprecated)]
impl glib::value::ValueType for TlsRehandshakeMode {
type Type = Self;
}

#[allow(deprecated)]
unsafe impl<'a> FromValue<'a> for TlsRehandshakeMode {
type Checker = glib::value::GenericValueTypeChecker<Self>;

Expand All @@ -4102,6 +4108,7 @@ unsafe impl<'a> FromValue<'a> for TlsRehandshakeMode {
}
}

#[allow(deprecated)]
impl ToValue for TlsRehandshakeMode {
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
Expand All @@ -4116,6 +4123,7 @@ impl ToValue for TlsRehandshakeMode {
}
}

#[allow(deprecated)]
impl From<TlsRehandshakeMode> for glib::Value {
#[inline]
fn from(v: TlsRehandshakeMode) -> Self {
Expand Down
1 change: 1 addition & 0 deletions gio/src/auto/file_info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::FileAttributeMatcher;
use crate::FileAttributeStatus;
Expand Down
2 changes: 2 additions & 0 deletions gio/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ pub use self::enums::TlsInteractionResult;
#[cfg(any(feature = "v2_70", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2_70")))]
pub use self::enums::TlsProtocolVersion;
#[allow(deprecated)]
pub use self::enums::TlsRehandshakeMode;
#[cfg(any(unix, feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(unix)))]
Expand Down Expand Up @@ -676,6 +677,7 @@ pub use self::constants::TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT;
pub use self::constants::TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER;
pub use self::constants::VFS_EXTENSION_POINT_NAME;
pub use self::constants::VOLUME_IDENTIFIER_KIND_CLASS;
#[allow(deprecated)]
pub use self::constants::VOLUME_IDENTIFIER_KIND_HAL_UDI;
pub use self::constants::VOLUME_IDENTIFIER_KIND_LABEL;
pub use self::constants::VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
Expand Down
5 changes: 5 additions & 0 deletions gio/src/auto/socket_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::AsyncResult;
use crate::Cancellable;
Expand Down Expand Up @@ -177,6 +178,7 @@ pub trait SocketClientExt: 'static {
fn is_tls(&self) -> bool;

#[cfg_attr(feature = "v2_72", deprecated = "Since 2.72")]
#[allow(deprecated)]
#[doc(alias = "g_socket_client_get_tls_validation_flags")]
#[doc(alias = "get_tls_validation_flags")]
fn tls_validation_flags(&self) -> TlsCertificateFlags;
Expand Down Expand Up @@ -206,6 +208,7 @@ pub trait SocketClientExt: 'static {
fn set_tls(&self, tls: bool);

#[cfg_attr(feature = "v2_72", deprecated = "Since 2.72")]
#[allow(deprecated)]
#[doc(alias = "g_socket_client_set_tls_validation_flags")]
fn set_tls_validation_flags(&self, flags: TlsCertificateFlags);

Expand Down Expand Up @@ -696,6 +699,7 @@ impl<O: IsA<SocketClient>> SocketClientExt for O {
unsafe { from_glib(ffi::g_socket_client_get_tls(self.as_ref().to_glib_none().0)) }
}

#[allow(deprecated)]
fn tls_validation_flags(&self) -> TlsCertificateFlags {
unsafe {
from_glib(ffi::g_socket_client_get_tls_validation_flags(
Expand Down Expand Up @@ -761,6 +765,7 @@ impl<O: IsA<SocketClient>> SocketClientExt for O {
}
}

#[allow(deprecated)]
fn set_tls_validation_flags(&self, flags: TlsCertificateFlags) {
unsafe {
ffi::g_socket_client_set_tls_validation_flags(
Expand Down
5 changes: 5 additions & 0 deletions gio/src/auto/tls_client_connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::IOStream;
use crate::SocketConnectable;
Expand Down Expand Up @@ -62,6 +63,7 @@ pub trait TlsClientConnectionExt: 'static {
fn server_identity(&self) -> Option<SocketConnectable>;

#[cfg_attr(feature = "v2_72", deprecated = "Since 2.72")]
#[allow(deprecated)]
#[doc(alias = "g_tls_client_connection_get_validation_flags")]
#[doc(alias = "get_validation_flags")]
fn validation_flags(&self) -> TlsCertificateFlags;
Expand All @@ -70,6 +72,7 @@ pub trait TlsClientConnectionExt: 'static {
fn set_server_identity(&self, identity: &impl IsA<SocketConnectable>);

#[cfg_attr(feature = "v2_72", deprecated = "Since 2.72")]
#[allow(deprecated)]
#[doc(alias = "g_tls_client_connection_set_validation_flags")]
fn set_validation_flags(&self, flags: TlsCertificateFlags);

Expand Down Expand Up @@ -110,6 +113,7 @@ impl<O: IsA<TlsClientConnection>> TlsClientConnectionExt for O {
}
}

#[allow(deprecated)]
fn validation_flags(&self) -> TlsCertificateFlags {
unsafe {
from_glib(ffi::g_tls_client_connection_get_validation_flags(
Expand All @@ -127,6 +131,7 @@ impl<O: IsA<TlsClientConnection>> TlsClientConnectionExt for O {
}
}

#[allow(deprecated)]
fn set_validation_flags(&self, flags: TlsCertificateFlags) {
unsafe {
ffi::g_tls_client_connection_set_validation_flags(
Expand Down
5 changes: 5 additions & 0 deletions gio/src/auto/tls_connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::AsyncResult;
use crate::Cancellable;
Expand Down Expand Up @@ -85,6 +86,7 @@ pub trait TlsConnectionExt: 'static {
fn protocol_version(&self) -> TlsProtocolVersion;

#[cfg_attr(feature = "v2_60", deprecated = "Since 2.60")]
#[allow(deprecated)]
#[doc(alias = "g_tls_connection_get_rehandshake_mode")]
#[doc(alias = "get_rehandshake_mode")]
fn rehandshake_mode(&self) -> TlsRehandshakeMode;
Expand Down Expand Up @@ -124,6 +126,7 @@ pub trait TlsConnectionExt: 'static {
fn set_interaction(&self, interaction: Option<&impl IsA<TlsInteraction>>);

#[cfg_attr(feature = "v2_60", deprecated = "Since 2.60")]
#[allow(deprecated)]
#[doc(alias = "g_tls_connection_set_rehandshake_mode")]
fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode);

Expand Down Expand Up @@ -277,6 +280,7 @@ impl<O: IsA<TlsConnection>> TlsConnectionExt for O {
}
}

#[allow(deprecated)]
fn rehandshake_mode(&self) -> TlsRehandshakeMode {
unsafe {
from_glib(ffi::g_tls_connection_get_rehandshake_mode(
Expand Down Expand Up @@ -412,6 +416,7 @@ impl<O: IsA<TlsConnection>> TlsConnectionExt for O {
}
}

#[allow(deprecated)]
fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode) {
unsafe {
ffi::g_tls_connection_set_rehandshake_mode(
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 @ 0eeebbdf9d4d)
from gir-files (https://github.com/gtk-rs/gir-files @ d8382a5920b8)
Generated by gir (https://github.com/gtk-rs/gir @ 6ec1537f60e3)
from gir-files (https://github.com/gtk-rs/gir-files @ 4c173afc6395)
6 changes: 3 additions & 3 deletions gio/sys/tests/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

#![cfg(target_os = "linux")]

use gio_sys::*;
use std::env;
use std::error::Error;
Expand All @@ -12,7 +14,7 @@ use std::process::Command;
use std::str;
use tempfile::Builder;

static PACKAGES: &[&str] = &["gio-2.0"];
static PACKAGES: &[&str] = &["gio-2.0", "gio-unix-2.0"];

#[derive(Clone, Debug)]
struct Compiler {
Expand Down Expand Up @@ -110,7 +112,6 @@ impl Results {
}

#[test]
#[cfg(target_os = "linux")]
fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new();

Expand Down Expand Up @@ -145,7 +146,6 @@ fn cross_validate_constants_with_c() {
}

#[test]
#[cfg(target_os = "linux")]
fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new();

Expand Down
2 changes: 2 additions & 0 deletions gio/sys/tests/manual.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
#include <gio/gunixmounts.h>
#include <gio/gunixoutputstream.h>
#include <gio/gunixsocketaddress.h>
#define G_SETTINGS_ENABLE_BACKEND 1
#include <gio/gsettingsbackend.h>
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 @ 0eeebbdf9d4d)
from gir-files (https://github.com/gtk-rs/gir-files @ d8382a5920b8)
Generated by gir (https://github.com/gtk-rs/gir @ 6ec1537f60e3)
from gir-files (https://github.com/gtk-rs/gir-files @ 4c173afc6395)
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 4 files
+1 −1 Gdk-3.0.gir
+3 −3 Gtk-3.0.gir
+80 −25 Gtk-4.0.gir
+3 −3 Pango-1.0.gir
Loading