Skip to content

Commit aa75d96

Browse files
committed
Add basic ConstructCell test
1 parent 762f367 commit aa75d96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

glib-macros/tests/properties.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fn props() {
77
mod foo {
88
use glib::prelude::*;
99
use glib::subclass::prelude::*;
10+
use glib::ConstructRefCell;
1011
use glib_macros::Properties;
1112
use std::cell::Cell;
1213
use std::cell::RefCell;
@@ -90,6 +91,8 @@ fn props() {
9091
once_cell: OnceCell<u8>,
9192
#[property(get, set)]
9293
cell: Cell<u8>,
94+
#[property(get, set)]
95+
construct_ref_cell: ConstructRefCell<u8>,
9396
}
9497

9598
impl ObjectImpl for Foo {

0 commit comments

Comments
 (0)