File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ fn analyze_property(
149
149
} else {
150
150
prop. writable
151
151
} ;
152
- let mut notifable = !prop. construct_only ;
152
+ let mut notifiable = !prop. construct_only ;
153
153
if generate_set && generate. contains ( PropertyGenerateFlags :: GET ) && !readable {
154
154
warn ! (
155
155
"Attempt to generate getter for notreadable property \" {}.{}\" " ,
@@ -165,7 +165,7 @@ fn analyze_property(
165
165
readable &= generate. contains ( PropertyGenerateFlags :: GET ) ;
166
166
writable &= generate. contains ( PropertyGenerateFlags :: SET ) ;
167
167
if generate_set {
168
- notifable = generate. contains ( PropertyGenerateFlags :: NOTIFY ) ;
168
+ notifiable = generate. contains ( PropertyGenerateFlags :: NOTIFY ) ;
169
169
}
170
170
171
171
if readable {
@@ -226,11 +226,11 @@ fn analyze_property(
226
226
None
227
227
} ;
228
228
229
- if !generate_trait && ( writable || readable) {
229
+ if !generate_trait && ( writable || readable || notifiable ) {
230
230
imports. add ( "glib::object::ObjectType" , prop_version) ;
231
231
}
232
232
233
- let notify_signal = if notifable {
233
+ let notify_signal = if notifiable {
234
234
let mut used_types: Vec < String > = Vec :: with_capacity ( 4 ) ;
235
235
let trampoline_name = trampolines:: analyze (
236
236
env,
You can’t perform that action at this time.
0 commit comments