Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 094ca4f

Browse files
Merge pull request #129 from EPashkin/remove_callback_guard
Remove callback guard
2 parents ee4766f + 6dc6a76 commit 094ca4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+5
-286
lines changed

src/application.rs

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ impl<O: IsA<Application> + IsA<glib::object::Object>> ApplicationExtManual for O
3636
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
3737
unsafe extern "C" fn open_trampoline<P>(this: *mut ffi::GApplication, files: *const *mut ffi::GFile, n_files: libc::c_int, hint: *mut libc::c_char, f: glib_ffi::gpointer)
3838
where P: IsA<Application> {
39-
callback_guard!();
4039
let f: &&(Fn(&P, &[File], &str) + 'static) = transmute(f);
4140
let files: Vec<File> = FromGlibContainer::from_glib_none_num(files, n_files as usize);
4241
f(&Application::from_glib_none(this).downcast_unchecked(), &files, &String::from_glib_none(hint))

src/auto/action.rs

-5
Original file line numberDiff line numberDiff line change
@@ -177,35 +177,30 @@ impl<O: IsA<Action> + IsA<glib::object::Object>> ActionExt for O {
177177

178178
unsafe extern "C" fn notify_enabled_trampoline<P>(this: *mut ffi::GAction, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
179179
where P: IsA<Action> {
180-
callback_guard!();
181180
let f: &&(Fn(&P) + 'static) = transmute(f);
182181
f(&Action::from_glib_borrow(this).downcast_unchecked())
183182
}
184183

185184
unsafe extern "C" fn notify_name_trampoline<P>(this: *mut ffi::GAction, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
186185
where P: IsA<Action> {
187-
callback_guard!();
188186
let f: &&(Fn(&P) + 'static) = transmute(f);
189187
f(&Action::from_glib_borrow(this).downcast_unchecked())
190188
}
191189

192190
unsafe extern "C" fn notify_parameter_type_trampoline<P>(this: *mut ffi::GAction, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
193191
where P: IsA<Action> {
194-
callback_guard!();
195192
let f: &&(Fn(&P) + 'static) = transmute(f);
196193
f(&Action::from_glib_borrow(this).downcast_unchecked())
197194
}
198195

199196
unsafe extern "C" fn notify_state_trampoline<P>(this: *mut ffi::GAction, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
200197
where P: IsA<Action> {
201-
callback_guard!();
202198
let f: &&(Fn(&P) + 'static) = transmute(f);
203199
f(&Action::from_glib_borrow(this).downcast_unchecked())
204200
}
205201

206202
unsafe extern "C" fn notify_state_type_trampoline<P>(this: *mut ffi::GAction, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
207203
where P: IsA<Action> {
208-
callback_guard!();
209204
let f: &&(Fn(&P) + 'static) = transmute(f);
210205
f(&Action::from_glib_borrow(this).downcast_unchecked())
211206
}

src/auto/action_group.rs

-4
Original file line numberDiff line numberDiff line change
@@ -177,28 +177,24 @@ impl<O: IsA<ActionGroup> + IsA<glib::object::Object>> ActionGroupExt for O {
177177

178178
unsafe extern "C" fn action_added_trampoline<P>(this: *mut ffi::GActionGroup, action_name: *mut libc::c_char, f: glib_ffi::gpointer)
179179
where P: IsA<ActionGroup> {
180-
callback_guard!();
181180
let f: &&(Fn(&P, &str) + 'static) = transmute(f);
182181
f(&ActionGroup::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(action_name))
183182
}
184183

185184
unsafe extern "C" fn action_enabled_changed_trampoline<P>(this: *mut ffi::GActionGroup, action_name: *mut libc::c_char, enabled: glib_ffi::gboolean, f: glib_ffi::gpointer)
186185
where P: IsA<ActionGroup> {
187-
callback_guard!();
188186
let f: &&(Fn(&P, &str, bool) + 'static) = transmute(f);
189187
f(&ActionGroup::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(action_name), from_glib(enabled))
190188
}
191189

192190
unsafe extern "C" fn action_removed_trampoline<P>(this: *mut ffi::GActionGroup, action_name: *mut libc::c_char, f: glib_ffi::gpointer)
193191
where P: IsA<ActionGroup> {
194-
callback_guard!();
195192
let f: &&(Fn(&P, &str) + 'static) = transmute(f);
196193
f(&ActionGroup::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(action_name))
197194
}
198195

199196
unsafe extern "C" fn action_state_changed_trampoline<P>(this: *mut ffi::GActionGroup, action_name: *mut libc::c_char, value: *mut glib_ffi::GVariant, f: glib_ffi::gpointer)
200197
where P: IsA<ActionGroup> {
201-
callback_guard!();
202198
let f: &&(Fn(&P, &str, &glib::Variant) + 'static) = transmute(f);
203199
f(&ActionGroup::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(action_name), &from_glib_borrow(value))
204200
}

src/auto/app_info.rs

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ impl AppInfo {
9898
let user_data: Box<Box<R>> = Box::new(Box::new(callback));
9999
unsafe extern "C" fn launch_default_for_uri_async_trampoline<R: FnOnce(Result<(), Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut ffi::GAsyncResult, user_data: glib_ffi::gpointer)
100100
{
101-
callback_guard!();
102101
let mut error = ptr::null_mut();
103102
let _ = ffi::g_app_info_launch_default_for_uri_finish(res, &mut error);
104103
let result = if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) };

src/auto/app_info_monitor.rs

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ impl<O: IsA<AppInfoMonitor> + IsA<glib::object::Object>> AppInfoMonitorExt for O
4949

5050
unsafe extern "C" fn changed_trampoline<P>(this: *mut ffi::GAppInfoMonitor, f: glib_ffi::gpointer)
5151
where P: IsA<AppInfoMonitor> {
52-
callback_guard!();
5352
let f: &&(Fn(&P) + 'static) = transmute(f);
5453
f(&AppInfoMonitor::from_glib_borrow(this).downcast_unchecked())
5554
}

src/auto/app_launch_context.rs

-2
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,13 @@ impl<O: IsA<AppLaunchContext> + IsA<glib::object::Object>> AppLaunchContextExt f
127127
#[cfg(any(feature = "v2_36", feature = "dox"))]
128128
unsafe extern "C" fn launch_failed_trampoline<P>(this: *mut ffi::GAppLaunchContext, startup_notify_id: *mut libc::c_char, f: glib_ffi::gpointer)
129129
where P: IsA<AppLaunchContext> {
130-
callback_guard!();
131130
let f: &&(Fn(&P, &str) + 'static) = transmute(f);
132131
f(&AppLaunchContext::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(startup_notify_id))
133132
}
134133

135134
#[cfg(any(feature = "v2_36", feature = "dox"))]
136135
unsafe extern "C" fn launched_trampoline<P>(this: *mut ffi::GAppLaunchContext, info: *mut ffi::GAppInfo, platform_data: *mut glib_ffi::GVariant, f: glib_ffi::gpointer)
137136
where P: IsA<AppLaunchContext> {
138-
callback_guard!();
139137
let f: &&(Fn(&P, &AppInfo, &glib::Variant) + 'static) = transmute(f);
140138
f(&AppLaunchContext::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(info), &from_glib_borrow(platform_data))
141139
}

src/auto/application.rs

-12
Original file line numberDiff line numberDiff line change
@@ -522,85 +522,73 @@ impl<O: IsA<Application> + IsA<glib::object::Object>> ApplicationExt for O {
522522

523523
unsafe extern "C" fn activate_trampoline<P>(this: *mut ffi::GApplication, f: glib_ffi::gpointer)
524524
where P: IsA<Application> {
525-
callback_guard!();
526525
let f: &&(Fn(&P) + 'static) = transmute(f);
527526
f(&Application::from_glib_borrow(this).downcast_unchecked())
528527
}
529528

530529
unsafe extern "C" fn command_line_trampoline<P>(this: *mut ffi::GApplication, command_line: *mut ffi::GApplicationCommandLine, f: glib_ffi::gpointer) -> libc::c_int
531530
where P: IsA<Application> {
532-
callback_guard!();
533531
let f: &&(Fn(&P, &ApplicationCommandLine) -> i32 + 'static) = transmute(f);
534532
f(&Application::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(command_line))
535533
}
536534

537535
unsafe extern "C" fn shutdown_trampoline<P>(this: *mut ffi::GApplication, f: glib_ffi::gpointer)
538536
where P: IsA<Application> {
539-
callback_guard!();
540537
let f: &&(Fn(&P) + 'static) = transmute(f);
541538
f(&Application::from_glib_borrow(this).downcast_unchecked())
542539
}
543540

544541
unsafe extern "C" fn startup_trampoline<P>(this: *mut ffi::GApplication, f: glib_ffi::gpointer)
545542
where P: IsA<Application> {
546-
callback_guard!();
547543
let f: &&(Fn(&P) + 'static) = transmute(f);
548544
f(&Application::from_glib_borrow(this).downcast_unchecked())
549545
}
550546

551547
unsafe extern "C" fn notify_action_group_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
552548
where P: IsA<Application> {
553-
callback_guard!();
554549
let f: &&(Fn(&P) + 'static) = transmute(f);
555550
f(&Application::from_glib_borrow(this).downcast_unchecked())
556551
}
557552

558553
unsafe extern "C" fn notify_application_id_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
559554
where P: IsA<Application> {
560-
callback_guard!();
561555
let f: &&(Fn(&P) + 'static) = transmute(f);
562556
f(&Application::from_glib_borrow(this).downcast_unchecked())
563557
}
564558

565559
unsafe extern "C" fn notify_flags_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
566560
where P: IsA<Application> {
567-
callback_guard!();
568561
let f: &&(Fn(&P) + 'static) = transmute(f);
569562
f(&Application::from_glib_borrow(this).downcast_unchecked())
570563
}
571564

572565
unsafe extern "C" fn notify_inactivity_timeout_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
573566
where P: IsA<Application> {
574-
callback_guard!();
575567
let f: &&(Fn(&P) + 'static) = transmute(f);
576568
f(&Application::from_glib_borrow(this).downcast_unchecked())
577569
}
578570

579571
#[cfg(any(feature = "v2_44", feature = "dox"))]
580572
unsafe extern "C" fn notify_is_busy_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
581573
where P: IsA<Application> {
582-
callback_guard!();
583574
let f: &&(Fn(&P) + 'static) = transmute(f);
584575
f(&Application::from_glib_borrow(this).downcast_unchecked())
585576
}
586577

587578
unsafe extern "C" fn notify_is_registered_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
588579
where P: IsA<Application> {
589-
callback_guard!();
590580
let f: &&(Fn(&P) + 'static) = transmute(f);
591581
f(&Application::from_glib_borrow(this).downcast_unchecked())
592582
}
593583

594584
unsafe extern "C" fn notify_is_remote_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
595585
where P: IsA<Application> {
596-
callback_guard!();
597586
let f: &&(Fn(&P) + 'static) = transmute(f);
598587
f(&Application::from_glib_borrow(this).downcast_unchecked())
599588
}
600589

601590
unsafe extern "C" fn notify_resource_base_path_trampoline<P>(this: *mut ffi::GApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
602591
where P: IsA<Application> {
603-
callback_guard!();
604592
let f: &&(Fn(&P) + 'static) = transmute(f);
605593
f(&Application::from_glib_borrow(this).downcast_unchecked())
606594
}

src/auto/application_command_line.rs

-4
Original file line numberDiff line numberDiff line change
@@ -181,28 +181,24 @@ impl<O: IsA<ApplicationCommandLine> + IsA<glib::object::Object>> ApplicationComm
181181

182182
unsafe extern "C" fn notify_arguments_trampoline<P>(this: *mut ffi::GApplicationCommandLine, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
183183
where P: IsA<ApplicationCommandLine> {
184-
callback_guard!();
185184
let f: &&(Fn(&P) + 'static) = transmute(f);
186185
f(&ApplicationCommandLine::from_glib_borrow(this).downcast_unchecked())
187186
}
188187

189188
unsafe extern "C" fn notify_is_remote_trampoline<P>(this: *mut ffi::GApplicationCommandLine, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
190189
where P: IsA<ApplicationCommandLine> {
191-
callback_guard!();
192190
let f: &&(Fn(&P) + 'static) = transmute(f);
193191
f(&ApplicationCommandLine::from_glib_borrow(this).downcast_unchecked())
194192
}
195193

196194
unsafe extern "C" fn notify_options_trampoline<P>(this: *mut ffi::GApplicationCommandLine, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
197195
where P: IsA<ApplicationCommandLine> {
198-
callback_guard!();
199196
let f: &&(Fn(&P) + 'static) = transmute(f);
200197
f(&ApplicationCommandLine::from_glib_borrow(this).downcast_unchecked())
201198
}
202199

203200
unsafe extern "C" fn notify_platform_data_trampoline<P>(this: *mut ffi::GApplicationCommandLine, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
204201
where P: IsA<ApplicationCommandLine> {
205-
callback_guard!();
206202
let f: &&(Fn(&P) + 'static) = transmute(f);
207203
f(&ApplicationCommandLine::from_glib_borrow(this).downcast_unchecked())
208204
}

src/auto/buffered_input_stream.rs

-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ impl<O: IsA<BufferedInputStream> + IsA<glib::object::Object> + Clone + 'static>
8383
let user_data: Box<Box<Q>> = Box::new(Box::new(callback));
8484
unsafe extern "C" fn fill_async_trampoline<Q: FnOnce(Result<isize, Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut ffi::GAsyncResult, user_data: glib_ffi::gpointer)
8585
{
86-
callback_guard!();
8786
let mut error = ptr::null_mut();
8887
let ret = ffi::g_buffered_input_stream_fill_finish(_source_object as *mut _, res, &mut error);
8988
let result = if error.is_null() { Ok(ret) } else { Err(from_glib_full(error)) };
@@ -167,7 +166,6 @@ impl<O: IsA<BufferedInputStream> + IsA<glib::object::Object> + Clone + 'static>
167166

168167
unsafe extern "C" fn notify_buffer_size_trampoline<P>(this: *mut ffi::GBufferedInputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
169168
where P: IsA<BufferedInputStream> {
170-
callback_guard!();
171169
let f: &&(Fn(&P) + 'static) = transmute(f);
172170
f(&BufferedInputStream::from_glib_borrow(this).downcast_unchecked())
173171
}

src/auto/buffered_output_stream.rs

-2
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,12 @@ impl<O: IsA<BufferedOutputStream> + IsA<glib::object::Object>> BufferedOutputStr
9999

100100
unsafe extern "C" fn notify_auto_grow_trampoline<P>(this: *mut ffi::GBufferedOutputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
101101
where P: IsA<BufferedOutputStream> {
102-
callback_guard!();
103102
let f: &&(Fn(&P) + 'static) = transmute(f);
104103
f(&BufferedOutputStream::from_glib_borrow(this).downcast_unchecked())
105104
}
106105

107106
unsafe extern "C" fn notify_buffer_size_trampoline<P>(this: *mut ffi::GBufferedOutputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
108107
where P: IsA<BufferedOutputStream> {
109-
callback_guard!();
110108
let f: &&(Fn(&P) + 'static) = transmute(f);
111109
f(&BufferedOutputStream::from_glib_borrow(this).downcast_unchecked())
112110
}

src/auto/bytes_icon.rs

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ impl<O: IsA<BytesIcon> + IsA<glib::object::Object>> BytesIconExt for O {
6969
#[cfg(any(feature = "v2_38", feature = "dox"))]
7070
unsafe extern "C" fn notify_bytes_trampoline<P>(this: *mut ffi::GBytesIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
7171
where P: IsA<BytesIcon> {
72-
callback_guard!();
7372
let f: &&(Fn(&P) + 'static) = transmute(f);
7473
f(&BytesIcon::from_glib_borrow(this).downcast_unchecked())
7574
}

src/auto/cancellable.rs

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ unsafe impl Send for Cancellable {}
113113
unsafe impl Sync for Cancellable {}
114114

115115
unsafe extern "C" fn cancelled_trampoline(this: *mut ffi::GCancellable, f: glib_ffi::gpointer) {
116-
callback_guard!();
117116
let f: &&(Fn(&Cancellable) + Send + Sync + 'static) = transmute(f);
118117
f(&from_glib_borrow(this))
119118
}

src/auto/charset_converter.rs

-3
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,18 @@ impl<O: IsA<CharsetConverter> + IsA<glib::object::Object>> CharsetConverterExt f
118118

119119
unsafe extern "C" fn notify_from_charset_trampoline<P>(this: *mut ffi::GCharsetConverter, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
120120
where P: IsA<CharsetConverter> {
121-
callback_guard!();
122121
let f: &&(Fn(&P) + 'static) = transmute(f);
123122
f(&CharsetConverter::from_glib_borrow(this).downcast_unchecked())
124123
}
125124

126125
unsafe extern "C" fn notify_to_charset_trampoline<P>(this: *mut ffi::GCharsetConverter, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
127126
where P: IsA<CharsetConverter> {
128-
callback_guard!();
129127
let f: &&(Fn(&P) + 'static) = transmute(f);
130128
f(&CharsetConverter::from_glib_borrow(this).downcast_unchecked())
131129
}
132130

133131
unsafe extern "C" fn notify_use_fallback_trampoline<P>(this: *mut ffi::GCharsetConverter, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
134132
where P: IsA<CharsetConverter> {
135-
callback_guard!();
136133
let f: &&(Fn(&P) + 'static) = transmute(f);
137134
f(&CharsetConverter::from_glib_borrow(this).downcast_unchecked())
138135
}

src/auto/converter_input_stream.rs

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ impl<O: IsA<ConverterInputStream> + IsA<glib::object::Object>> ConverterInputStr
6060

6161
unsafe extern "C" fn notify_converter_trampoline<P>(this: *mut ffi::GConverterInputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
6262
where P: IsA<ConverterInputStream> {
63-
callback_guard!();
6463
let f: &&(Fn(&P) + 'static) = transmute(f);
6564
f(&ConverterInputStream::from_glib_borrow(this).downcast_unchecked())
6665
}

src/auto/converter_output_stream.rs

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ impl<O: IsA<ConverterOutputStream> + IsA<glib::object::Object>> ConverterOutputS
6060

6161
unsafe extern "C" fn notify_converter_trampoline<P>(this: *mut ffi::GConverterOutputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
6262
where P: IsA<ConverterOutputStream> {
63-
callback_guard!();
6463
let f: &&(Fn(&P) + 'static) = transmute(f);
6564
f(&ConverterOutputStream::from_glib_borrow(this).downcast_unchecked())
6665
}

src/auto/data_input_stream.rs

-4
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ impl<O: IsA<DataInputStream> + IsA<glib::object::Object> + Clone + 'static> Data
206206
let user_data: Box<Box<Q>> = Box::new(Box::new(callback));
207207
unsafe extern "C" fn read_until_async_trampoline<Q: FnOnce(Result<(String, usize), Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut ffi::GAsyncResult, user_data: glib_ffi::gpointer)
208208
{
209-
callback_guard!();
210209
let mut error = ptr::null_mut();
211210
let mut length = mem::uninitialized();
212211
let ret = ffi::g_data_input_stream_read_until_finish(_source_object as *mut _, res, &mut length, &mut error);
@@ -264,7 +263,6 @@ impl<O: IsA<DataInputStream> + IsA<glib::object::Object> + Clone + 'static> Data
264263
let user_data: Box<Box<Q>> = Box::new(Box::new(callback));
265264
unsafe extern "C" fn read_upto_async_trampoline<Q: FnOnce(Result<(String, usize), Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut ffi::GAsyncResult, user_data: glib_ffi::gpointer)
266265
{
267-
callback_guard!();
268266
let mut error = ptr::null_mut();
269267
let mut length = mem::uninitialized();
270268
let ret = ffi::g_data_input_stream_read_upto_finish(_source_object as *mut _, res, &mut length, &mut error);
@@ -334,14 +332,12 @@ impl<O: IsA<DataInputStream> + IsA<glib::object::Object> + Clone + 'static> Data
334332

335333
unsafe extern "C" fn notify_byte_order_trampoline<P>(this: *mut ffi::GDataInputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
336334
where P: IsA<DataInputStream> {
337-
callback_guard!();
338335
let f: &&(Fn(&P) + 'static) = transmute(f);
339336
f(&DataInputStream::from_glib_borrow(this).downcast_unchecked())
340337
}
341338

342339
unsafe extern "C" fn notify_newline_type_trampoline<P>(this: *mut ffi::GDataInputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
343340
where P: IsA<DataInputStream> {
344-
callback_guard!();
345341
let f: &&(Fn(&P) + 'static) = transmute(f);
346342
f(&DataInputStream::from_glib_borrow(this).downcast_unchecked())
347343
}

src/auto/data_output_stream.rs

-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ impl<O: IsA<DataOutputStream> + IsA<glib::object::Object>> DataOutputStreamExt f
166166

167167
unsafe extern "C" fn notify_byte_order_trampoline<P>(this: *mut ffi::GDataOutputStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
168168
where P: IsA<DataOutputStream> {
169-
callback_guard!();
170169
let f: &&(Fn(&P) + 'static) = transmute(f);
171170
f(&DataOutputStream::from_glib_borrow(this).downcast_unchecked())
172171
}

src/auto/desktop_app_info.rs

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ impl<O: IsA<DesktopAppInfo> + IsA<glib::object::Object>> DesktopAppInfoExt for O
224224

225225
unsafe extern "C" fn notify_filename_trampoline<P>(this: *mut ffi::GDesktopAppInfo, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
226226
where P: IsA<DesktopAppInfo> {
227-
callback_guard!();
228227
let f: &&(Fn(&P) + 'static) = transmute(f);
229228
f(&DesktopAppInfo::from_glib_borrow(this).downcast_unchecked())
230229
}

0 commit comments

Comments
 (0)