Skip to content

Commit 4b9b0e7

Browse files
jf2048bilelmoussaoui
authored andcommitted
regenerate gir
1 parent 82e1484 commit 4b9b0e7

File tree

115 files changed

+3444
-9638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3444
-9638
lines changed

gdk4-wayland/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4-wayland/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4-win32/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4-win32/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4-x11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4-x11/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 719372782330)
1+
Generated by gir (https://github.com/gtk-rs/gir @ d48b149bdfcc)
22
from gir-files (https://github.com/gtk-rs/gir-files @ dabd4d36bf2d)

gdk4/src/auto/app_launch_context.rs

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,9 @@ impl AppLaunchContext {
1919
pub const NONE: Option<&'static AppLaunchContext> = None;
2020
}
2121

22-
pub trait GdkAppLaunchContextExt: 'static {
22+
pub trait GdkAppLaunchContextExt: IsA<AppLaunchContext> + 'static {
2323
#[doc(alias = "gdk_app_launch_context_get_display")]
2424
#[doc(alias = "get_display")]
25-
fn display(&self) -> Display;
26-
27-
#[doc(alias = "gdk_app_launch_context_set_desktop")]
28-
fn set_desktop(&self, desktop: i32);
29-
30-
#[doc(alias = "gdk_app_launch_context_set_icon")]
31-
fn set_icon(&self, icon: Option<&impl IsA<gio::Icon>>);
32-
33-
#[doc(alias = "gdk_app_launch_context_set_icon_name")]
34-
fn set_icon_name(&self, icon_name: Option<&str>);
35-
36-
#[doc(alias = "gdk_app_launch_context_set_timestamp")]
37-
fn set_timestamp(&self, timestamp: u32);
38-
}
39-
40-
impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {
4125
fn display(&self) -> Display {
4226
unsafe {
4327
from_glib_none(ffi::gdk_app_launch_context_get_display(
@@ -46,12 +30,14 @@ impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {
4630
}
4731
}
4832

33+
#[doc(alias = "gdk_app_launch_context_set_desktop")]
4934
fn set_desktop(&self, desktop: i32) {
5035
unsafe {
5136
ffi::gdk_app_launch_context_set_desktop(self.as_ref().to_glib_none().0, desktop);
5237
}
5338
}
5439

40+
#[doc(alias = "gdk_app_launch_context_set_icon")]
5541
fn set_icon(&self, icon: Option<&impl IsA<gio::Icon>>) {
5642
unsafe {
5743
ffi::gdk_app_launch_context_set_icon(
@@ -61,6 +47,7 @@ impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {
6147
}
6248
}
6349

50+
#[doc(alias = "gdk_app_launch_context_set_icon_name")]
6451
fn set_icon_name(&self, icon_name: Option<&str>) {
6552
unsafe {
6653
ffi::gdk_app_launch_context_set_icon_name(
@@ -70,13 +57,16 @@ impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {
7057
}
7158
}
7259

60+
#[doc(alias = "gdk_app_launch_context_set_timestamp")]
7361
fn set_timestamp(&self, timestamp: u32) {
7462
unsafe {
7563
ffi::gdk_app_launch_context_set_timestamp(self.as_ref().to_glib_none().0, timestamp);
7664
}
7765
}
7866
}
7967

68+
impl<O: IsA<AppLaunchContext>> GdkAppLaunchContextExt for O {}
69+
8070
impl fmt::Display for AppLaunchContext {
8171
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
8272
f.write_str("AppLaunchContext")

gdk4/src/auto/content_provider.rs

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -58,52 +58,16 @@ impl ContentProvider {
5858
}
5959
}
6060

61-
pub trait ContentProviderExt: 'static {
61+
pub trait ContentProviderExt: IsA<ContentProvider> + 'static {
6262
#[doc(alias = "gdk_content_provider_content_changed")]
63-
fn content_changed(&self);
64-
65-
#[doc(alias = "gdk_content_provider_ref_formats")]
66-
#[doc(alias = "ref_formats")]
67-
fn formats(&self) -> ContentFormats;
68-
69-
#[doc(alias = "gdk_content_provider_ref_storable_formats")]
70-
#[doc(alias = "ref_storable_formats")]
71-
fn storable_formats(&self) -> ContentFormats;
72-
73-
#[doc(alias = "gdk_content_provider_write_mime_type_async")]
74-
fn write_mime_type_async<P: FnOnce(Result<(), glib::Error>) + 'static>(
75-
&self,
76-
mime_type: &str,
77-
stream: &impl IsA<gio::OutputStream>,
78-
io_priority: glib::Priority,
79-
cancellable: Option<&impl IsA<gio::Cancellable>>,
80-
callback: P,
81-
);
82-
83-
fn write_mime_type_future(
84-
&self,
85-
mime_type: &str,
86-
stream: &(impl IsA<gio::OutputStream> + Clone + 'static),
87-
io_priority: glib::Priority,
88-
) -> Pin<Box_<dyn std::future::Future<Output = Result<(), glib::Error>> + 'static>>;
89-
90-
#[doc(alias = "content-changed")]
91-
fn connect_content_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
92-
93-
#[doc(alias = "formats")]
94-
fn connect_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
95-
96-
#[doc(alias = "storable-formats")]
97-
fn connect_storable_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
98-
}
99-
100-
impl<O: IsA<ContentProvider>> ContentProviderExt for O {
10163
fn content_changed(&self) {
10264
unsafe {
10365
ffi::gdk_content_provider_content_changed(self.as_ref().to_glib_none().0);
10466
}
10567
}
10668

69+
#[doc(alias = "gdk_content_provider_ref_formats")]
70+
#[doc(alias = "ref_formats")]
10771
fn formats(&self) -> ContentFormats {
10872
unsafe {
10973
from_glib_full(ffi::gdk_content_provider_ref_formats(
@@ -112,6 +76,8 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
11276
}
11377
}
11478

79+
#[doc(alias = "gdk_content_provider_ref_storable_formats")]
80+
#[doc(alias = "ref_storable_formats")]
11581
fn storable_formats(&self) -> ContentFormats {
11682
unsafe {
11783
from_glib_full(ffi::gdk_content_provider_ref_storable_formats(
@@ -120,6 +86,7 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
12086
}
12187
}
12288

89+
#[doc(alias = "gdk_content_provider_write_mime_type_async")]
12390
fn write_mime_type_async<P: FnOnce(Result<(), glib::Error>) + 'static>(
12491
&self,
12592
mime_type: &str,
@@ -198,6 +165,7 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
198165
}))
199166
}
200167

168+
#[doc(alias = "content-changed")]
201169
fn connect_content_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
202170
unsafe extern "C" fn content_changed_trampoline<
203171
P: IsA<ContentProvider>,
@@ -222,6 +190,7 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
222190
}
223191
}
224192

193+
#[doc(alias = "formats")]
225194
fn connect_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
226195
unsafe extern "C" fn notify_formats_trampoline<
227196
P: IsA<ContentProvider>,
@@ -247,6 +216,7 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
247216
}
248217
}
249218

219+
#[doc(alias = "storable-formats")]
250220
fn connect_storable_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
251221
unsafe extern "C" fn notify_storable_formats_trampoline<
252222
P: IsA<ContentProvider>,
@@ -273,6 +243,8 @@ impl<O: IsA<ContentProvider>> ContentProviderExt for O {
273243
}
274244
}
275245

246+
impl<O: IsA<ContentProvider>> ContentProviderExt for O {}
247+
276248
impl fmt::Display for ContentProvider {
277249
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
278250
f.write_str("ContentProvider")

0 commit comments

Comments
 (0)