Skip to content

Commit 25703ef

Browse files
github-actions[bot]bilelmoussaoui
authored andcommitted
Regenerate with latest gir-files
1 parent 8f8dbd4 commit 25703ef

File tree

16 files changed

+118
-16
lines changed

16 files changed

+118
-16
lines changed

gdk4-macos/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-macos/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-wayland/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-wayland/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-win32/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-win32/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-x11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4-x11/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gdk4/src/auto/vulkan_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::boxed::Box as Box_;
1313

1414
glib::wrapper! {
1515
#[doc(alias = "GdkVulkanContext")]
16-
pub struct VulkanContext(Object<ffi::GdkVulkanContext>) @extends DrawContext, @implements gio::Initable;
16+
pub struct VulkanContext(Object<ffi::GdkVulkanContext>) @extends DrawContext;
1717

1818
match fn {
1919
type_ => || ffi::gdk_vulkan_context_get_type(),

gdk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gsk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gsk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gtk4/src/auto/icon_paintable.rs

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
// This file was generated by gir (https://github.com/gtk-rs/gir)
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
4+
#![allow(deprecated)]
45

56
use crate::ffi;
67
#[cfg(feature = "v4_6")]
78
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
89
use crate::SymbolicPaintable;
9-
use glib::{prelude::*, translate::*};
10+
use glib::{
11+
prelude::*,
12+
signal::{connect_raw, SignalHandlerId},
13+
translate::*,
14+
};
15+
use std::boxed::Box as Box_;
1016

1117
#[cfg(feature = "v4_6")]
1218
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
@@ -49,16 +55,112 @@ impl IconPaintable {
4955
unsafe { from_glib_full(ffi::gtk_icon_paintable_get_file(self.to_glib_none().0)) }
5056
}
5157

58+
#[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")]
59+
#[allow(deprecated)]
5260
#[doc(alias = "gtk_icon_paintable_get_icon_name")]
5361
#[doc(alias = "get_icon_name")]
5462
#[doc(alias = "icon-name")]
5563
pub fn icon_name(&self) -> Option<std::path::PathBuf> {
5664
unsafe { from_glib_none(ffi::gtk_icon_paintable_get_icon_name(self.to_glib_none().0)) }
5765
}
5866

67+
#[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")]
68+
#[allow(deprecated)]
5969
#[doc(alias = "gtk_icon_paintable_is_symbolic")]
6070
#[doc(alias = "is-symbolic")]
6171
pub fn is_symbolic(&self) -> bool {
6272
unsafe { from_glib(ffi::gtk_icon_paintable_is_symbolic(self.to_glib_none().0)) }
6373
}
74+
75+
#[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")]
76+
#[doc(alias = "is-symbolic")]
77+
pub fn set_is_symbolic(&self, is_symbolic: bool) {
78+
ObjectExt::set_property(self, "is-symbolic", is_symbolic)
79+
}
80+
81+
pub fn scale(&self) -> i32 {
82+
ObjectExt::property(self, "scale")
83+
}
84+
85+
pub fn set_scale(&self, scale: i32) {
86+
ObjectExt::set_property(self, "scale", scale)
87+
}
88+
89+
pub fn size(&self) -> i32 {
90+
ObjectExt::property(self, "size")
91+
}
92+
93+
pub fn set_size(&self, size: i32) {
94+
ObjectExt::set_property(self, "size", size)
95+
}
96+
97+
#[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")]
98+
#[doc(alias = "is-symbolic")]
99+
pub fn connect_is_symbolic_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
100+
unsafe extern "C" fn notify_is_symbolic_trampoline<F: Fn(&IconPaintable) + 'static>(
101+
this: *mut ffi::GtkIconPaintable,
102+
_param_spec: glib::ffi::gpointer,
103+
f: glib::ffi::gpointer,
104+
) {
105+
let f: &F = &*(f as *const F);
106+
f(&from_glib_borrow(this))
107+
}
108+
unsafe {
109+
let f: Box_<F> = Box_::new(f);
110+
connect_raw(
111+
self.as_ptr() as *mut _,
112+
c"notify::is-symbolic".as_ptr() as *const _,
113+
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
114+
notify_is_symbolic_trampoline::<F> as *const (),
115+
)),
116+
Box_::into_raw(f),
117+
)
118+
}
119+
}
120+
121+
#[doc(alias = "scale")]
122+
pub fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
123+
unsafe extern "C" fn notify_scale_trampoline<F: Fn(&IconPaintable) + 'static>(
124+
this: *mut ffi::GtkIconPaintable,
125+
_param_spec: glib::ffi::gpointer,
126+
f: glib::ffi::gpointer,
127+
) {
128+
let f: &F = &*(f as *const F);
129+
f(&from_glib_borrow(this))
130+
}
131+
unsafe {
132+
let f: Box_<F> = Box_::new(f);
133+
connect_raw(
134+
self.as_ptr() as *mut _,
135+
c"notify::scale".as_ptr() as *const _,
136+
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
137+
notify_scale_trampoline::<F> as *const (),
138+
)),
139+
Box_::into_raw(f),
140+
)
141+
}
142+
}
143+
144+
#[doc(alias = "size")]
145+
pub fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
146+
unsafe extern "C" fn notify_size_trampoline<F: Fn(&IconPaintable) + 'static>(
147+
this: *mut ffi::GtkIconPaintable,
148+
_param_spec: glib::ffi::gpointer,
149+
f: glib::ffi::gpointer,
150+
) {
151+
let f: &F = &*(f as *const F);
152+
f(&from_glib_borrow(this))
153+
}
154+
unsafe {
155+
let f: Box_<F> = Box_::new(f);
156+
connect_raw(
157+
self.as_ptr() as *mut _,
158+
c"notify::size".as_ptr() as *const _,
159+
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
160+
notify_size_trampoline::<F> as *const (),
161+
)),
162+
Box_::into_raw(f),
163+
)
164+
}
165+
}
64166
}

gtk4/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

gtk4/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 3fcec321a85e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ f5f1ab94657c)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ a368f925fd3c)

0 commit comments

Comments
 (0)