File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ pub trait ObjectImpl: ObjectSubclass + ObjectImplExt {
33
33
///
34
34
/// This is called whenever the property of this specific subclass with the
35
35
/// given index is set. The new value is passed as `glib::Value`.
36
+ ///
37
+ /// `value` is guaranteed to be of the correct type for the given property.
36
38
fn set_property ( & self , _id : usize , _value : & Value , _pspec : & ParamSpec ) {
37
39
unimplemented ! ( )
38
40
}
@@ -42,6 +44,8 @@ pub trait ObjectImpl: ObjectSubclass + ObjectImplExt {
42
44
///
43
45
/// This is called whenever the property value of the specific subclass with the
44
46
/// given index should be returned.
47
+ ///
48
+ /// The returned `Value` must be of the correct type for the given property.
45
49
#[ doc( alias = "get_property" ) ]
46
50
fn property ( & self , _id : usize , _pspec : & ParamSpec ) -> Value {
47
51
unimplemented ! ( )
You can’t perform that action at this time.
0 commit comments