|
1 |
| -// This file was generated by gir (d50d839) from gir-files (469db10) |
| 1 | +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) |
| 2 | +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) |
2 | 3 | // DO NOT EDIT
|
3 | 4 |
|
4 | 5 | use WebView;
|
@@ -120,8 +121,7 @@ impl<O: IsA<FindController> + IsA<glib::object::Object>> FindControllerExt for O
|
120 | 121 |
|
121 | 122 | fn get_property_text(&self) -> Option<String> {
|
122 | 123 | unsafe {
|
123 |
| - let mut value = Value::uninitialized(); |
124 |
| - gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib()); |
| 124 | + let mut value = Value::from_type(<String as StaticType>::static_type()); |
125 | 125 | gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0);
|
126 | 126 | value.get()
|
127 | 127 | }
|
@@ -186,49 +186,42 @@ impl<O: IsA<FindController> + IsA<glib::object::Object>> FindControllerExt for O
|
186 | 186 |
|
187 | 187 | unsafe extern "C" fn counted_matches_trampoline<P>(this: *mut ffi::WebKitFindController, match_count: libc::c_uint, f: glib_ffi::gpointer)
|
188 | 188 | where P: IsA<FindController> {
|
189 |
| - callback_guard!(); |
190 | 189 | let f: &&(Fn(&P, u32) + 'static) = transmute(f);
|
191 | 190 | f(&FindController::from_glib_borrow(this).downcast_unchecked(), match_count)
|
192 | 191 | }
|
193 | 192 |
|
194 | 193 | unsafe extern "C" fn failed_to_find_text_trampoline<P>(this: *mut ffi::WebKitFindController, f: glib_ffi::gpointer)
|
195 | 194 | where P: IsA<FindController> {
|
196 |
| - callback_guard!(); |
197 | 195 | let f: &&(Fn(&P) + 'static) = transmute(f);
|
198 | 196 | f(&FindController::from_glib_borrow(this).downcast_unchecked())
|
199 | 197 | }
|
200 | 198 |
|
201 | 199 | unsafe extern "C" fn found_text_trampoline<P>(this: *mut ffi::WebKitFindController, match_count: libc::c_uint, f: glib_ffi::gpointer)
|
202 | 200 | where P: IsA<FindController> {
|
203 |
| - callback_guard!(); |
204 | 201 | let f: &&(Fn(&P, u32) + 'static) = transmute(f);
|
205 | 202 | f(&FindController::from_glib_borrow(this).downcast_unchecked(), match_count)
|
206 | 203 | }
|
207 | 204 |
|
208 | 205 | unsafe extern "C" fn notify_max_match_count_trampoline<P>(this: *mut ffi::WebKitFindController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
209 | 206 | where P: IsA<FindController> {
|
210 |
| - callback_guard!(); |
211 | 207 | let f: &&(Fn(&P) + 'static) = transmute(f);
|
212 | 208 | f(&FindController::from_glib_borrow(this).downcast_unchecked())
|
213 | 209 | }
|
214 | 210 |
|
215 | 211 | unsafe extern "C" fn notify_options_trampoline<P>(this: *mut ffi::WebKitFindController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
216 | 212 | where P: IsA<FindController> {
|
217 |
| - callback_guard!(); |
218 | 213 | let f: &&(Fn(&P) + 'static) = transmute(f);
|
219 | 214 | f(&FindController::from_glib_borrow(this).downcast_unchecked())
|
220 | 215 | }
|
221 | 216 |
|
222 | 217 | unsafe extern "C" fn notify_text_trampoline<P>(this: *mut ffi::WebKitFindController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
223 | 218 | where P: IsA<FindController> {
|
224 |
| - callback_guard!(); |
225 | 219 | let f: &&(Fn(&P) + 'static) = transmute(f);
|
226 | 220 | f(&FindController::from_glib_borrow(this).downcast_unchecked())
|
227 | 221 | }
|
228 | 222 |
|
229 | 223 | unsafe extern "C" fn notify_web_view_trampoline<P>(this: *mut ffi::WebKitFindController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
230 | 224 | where P: IsA<FindController> {
|
231 |
| - callback_guard!(); |
232 | 225 | let f: &&(Fn(&P) + 'static) = transmute(f);
|
233 | 226 | f(&FindController::from_glib_borrow(this).downcast_unchecked())
|
234 | 227 | }
|
0 commit comments