Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit e933792

Browse files
Regenerate
1 parent 5e271b6 commit e933792

File tree

18 files changed

+83
-18
lines changed

18 files changed

+83
-18
lines changed

atk/src/auto/object.rs

+33
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,39 @@ pub trait AtkObjectExt: IsA<Object> + sealed::Sealed + 'static {
507507
}
508508
}
509509

510+
#[cfg(feature = "v2_50")]
511+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_50")))]
512+
#[doc(alias = "notification")]
513+
fn connect_notification<F: Fn(&Self, &str, i32) + 'static>(&self, f: F) -> SignalHandlerId {
514+
unsafe extern "C" fn notification_trampoline<
515+
P: IsA<Object>,
516+
F: Fn(&P, &str, i32) + 'static,
517+
>(
518+
this: *mut ffi::AtkObject,
519+
arg1: *mut libc::c_char,
520+
arg2: libc::c_int,
521+
f: glib::ffi::gpointer,
522+
) {
523+
let f: &F = &*(f as *const F);
524+
f(
525+
Object::from_glib_borrow(this).unsafe_cast_ref(),
526+
&glib::GString::from_glib_borrow(arg1),
527+
arg2,
528+
)
529+
}
530+
unsafe {
531+
let f: Box_<F> = Box_::new(f);
532+
connect_raw(
533+
self.as_ptr() as *mut _,
534+
b"notification\0".as_ptr() as *const _,
535+
Some(transmute::<_, unsafe extern "C" fn()>(
536+
notification_trampoline::<Self, F> as *const (),
537+
)),
538+
Box_::into_raw(f),
539+
)
540+
}
541+
}
542+
510543
//#[doc(alias = "property-change")]
511544
//fn connect_property_change<Unsupported or ignored types>(&self, detail: Option<&str>, f: F) -> SignalHandlerId {
512545
// Ignored arg1: Atk.PropertyValues

atk/src/auto/state_set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub trait StateSetExt: IsA<StateSet> + sealed::Sealed + 'static {
4848
}
4949

5050
//#[doc(alias = "atk_state_set_add_states")]
51-
//fn add_states(&self, types: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 68 }) {
51+
//fn add_states(&self, types: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 69 }) {
5252
// unsafe { TODO: call ffi:atk_state_set_add_states() }
5353
//}
5454

@@ -81,7 +81,7 @@ pub trait StateSetExt: IsA<StateSet> + sealed::Sealed + 'static {
8181
}
8282

8383
//#[doc(alias = "atk_state_set_contains_states")]
84-
//fn contains_states(&self, types: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 68 }) -> bool {
84+
//fn contains_states(&self, types: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 69 }) -> bool {
8585
// unsafe { TODO: call ffi:atk_state_set_contains_states() }
8686
//}
8787

atk/src/auto/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

atk/sys/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ v2_32 = ["v2_30"]
2222
v2_34 = ["v2_32"]
2323
v2_38 = ["v2_34"]
2424
v2_46 = ["v2_38"]
25+
v2_50 = ["v2_46"]
2526

2627
[lib]
2728
name = "atk_sys"
@@ -43,6 +44,7 @@ rust-version = "1.70"
4344
[package.metadata.docs.rs]
4445
rustdoc-args = ["--cfg", "docsrs"]
4546
features = []
47+
rustc-args = ["--cfg", "docsrs"]
4648

4749
[package.metadata.system-deps.atk]
4850
name = "atk"
@@ -62,3 +64,6 @@ version = "2.38"
6264

6365
[package.metadata.system-deps.atk.v2_46]
6466
version = "2.46"
67+
68+
[package.metadata.system-deps.atk.v2_50]
69+
version = "2.50"

atk/sys/src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ pub const ATK_LAYER_POPUP: AtkLayer = 5;
4545
pub const ATK_LAYER_OVERLAY: AtkLayer = 6;
4646
pub const ATK_LAYER_WINDOW: AtkLayer = 7;
4747

48+
pub type AtkLive = c_int;
49+
pub const ATK_LIVE_NONE: AtkLive = 0;
50+
pub const ATK_LIVE_POLITE: AtkLive = 1;
51+
pub const ATK_LIVE_ASSERTIVE: AtkLive = 2;
52+
4853
pub type AtkRelationType = c_int;
4954
pub const ATK_RELATION_NULL: AtkRelationType = 0;
5055
pub const ATK_RELATION_CONTROLLED_BY: AtkRelationType = 1;
@@ -1819,6 +1824,11 @@ extern "C" {
18191824
//=========================================================================
18201825
pub fn atk_layer_get_type() -> GType;
18211826

1827+
//=========================================================================
1828+
// AtkLive
1829+
//=========================================================================
1830+
pub fn atk_live_get_type() -> GType;
1831+
18221832
//=========================================================================
18231833
// AtkRelationType
18241834
//=========================================================================

atk/sys/tests/abi.rs

+10
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
323323
alignment: align_of::<AtkLayer>(),
324324
},
325325
),
326+
(
327+
"AtkLive",
328+
Layout {
329+
size: size_of::<AtkLive>(),
330+
alignment: align_of::<AtkLive>(),
331+
},
332+
),
326333
(
327334
"AtkMisc",
328335
Layout {
@@ -653,6 +660,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
653660
("(gint) ATK_LAYER_POPUP", "5"),
654661
("(gint) ATK_LAYER_WIDGET", "3"),
655662
("(gint) ATK_LAYER_WINDOW", "7"),
663+
("(gint) ATK_LIVE_ASSERTIVE", "2"),
664+
("(gint) ATK_LIVE_NONE", "0"),
665+
("(gint) ATK_LIVE_POLITE", "1"),
656666
("(gint) ATK_RELATION_CONTROLLED_BY", "1"),
657667
("(gint) ATK_RELATION_CONTROLLER_FOR", "2"),
658668
("(gint) ATK_RELATION_DESCRIBED_BY", "14"),

atk/sys/tests/constant.c

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ int main() {
4040
PRINT_CONSTANT((gint) ATK_LAYER_POPUP);
4141
PRINT_CONSTANT((gint) ATK_LAYER_WIDGET);
4242
PRINT_CONSTANT((gint) ATK_LAYER_WINDOW);
43+
PRINT_CONSTANT((gint) ATK_LIVE_ASSERTIVE);
44+
PRINT_CONSTANT((gint) ATK_LIVE_NONE);
45+
PRINT_CONSTANT((gint) ATK_LIVE_POLITE);
4346
PRINT_CONSTANT((gint) ATK_RELATION_CONTROLLED_BY);
4447
PRINT_CONSTANT((gint) ATK_RELATION_CONTROLLER_FOR);
4548
PRINT_CONSTANT((gint) ATK_RELATION_DESCRIBED_BY);

atk/sys/tests/layout.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ int main() {
2525
printf("%s;%zu;%zu\n", "AtkKeyEventStruct", sizeof(AtkKeyEventStruct), alignof(AtkKeyEventStruct));
2626
printf("%s;%zu;%zu\n", "AtkKeyEventType", sizeof(AtkKeyEventType), alignof(AtkKeyEventType));
2727
printf("%s;%zu;%zu\n", "AtkLayer", sizeof(AtkLayer), alignof(AtkLayer));
28+
printf("%s;%zu;%zu\n", "AtkLive", sizeof(AtkLive), alignof(AtkLive));
2829
printf("%s;%zu;%zu\n", "AtkMisc", sizeof(AtkMisc), alignof(AtkMisc));
2930
printf("%s;%zu;%zu\n", "AtkMiscClass", sizeof(AtkMiscClass), alignof(AtkMiscClass));
3031
printf("%s;%zu;%zu\n", "AtkNoOpObject", sizeof(AtkNoOpObject), alignof(AtkNoOpObject));

atk/sys/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gdk/src/auto/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gdk/sys/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ rust-version = "1.70"
5656
[package.metadata.docs.rs]
5757
rustdoc-args = ["--cfg", "docsrs"]
5858
features = []
59+
rustc-args = ["--cfg", "docsrs"]
5960

6061
[package.metadata.system-deps.gdk_3_0]
6162
name = "gdk-3.0"

gdk/sys/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gdkx11/src/auto/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gdkx11/sys/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rust-version = "1.70"
1414
[package.metadata.docs.rs]
1515
rustdoc-args = ["--cfg", "docsrs"]
1616
features = []
17+
rustc-args = ["--cfg", "docsrs"]
1718

1819
[package.metadata.system-deps.gdk_x11_3_0]
1920
name = "gdk-x11-3.0"

gdkx11/sys/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gtk/src/auto/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

gtk/sys/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rust-version = "1.70"
1515
[package.metadata.docs.rs]
1616
rustdoc-args = ["--cfg", "docsrs"]
1717
features = []
18+
rustc-args = ["--cfg", "docsrs"]
1819

1920
[package.metadata.system-deps."gtk+_3_0"]
2021
name = "gtk+-3.0"

gtk/sys/versions.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ef087c070d5b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 1dc6c3826666)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 76bbe9b90aaa)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 307566e1ab58)

0 commit comments

Comments
 (0)