@@ -522,85 +522,73 @@ impl<O: IsA<Application> + IsA<glib::object::Object>> ApplicationExt for O {
522
522
523
523
unsafe extern "C" fn activate_trampoline < P > ( this : * mut ffi:: GApplication , f : glib_ffi:: gpointer )
524
524
where P : IsA < Application > {
525
- callback_guard ! ( ) ;
526
525
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
527
526
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
528
527
}
529
528
530
529
unsafe extern "C" fn command_line_trampoline < P > ( this : * mut ffi:: GApplication , command_line : * mut ffi:: GApplicationCommandLine , f : glib_ffi:: gpointer ) -> libc:: c_int
531
530
where P : IsA < Application > {
532
- callback_guard ! ( ) ;
533
531
let f: & & ( Fn ( & P , & ApplicationCommandLine ) -> i32 + ' static ) = transmute ( f) ;
534
532
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) , & from_glib_borrow ( command_line) )
535
533
}
536
534
537
535
unsafe extern "C" fn shutdown_trampoline < P > ( this : * mut ffi:: GApplication , f : glib_ffi:: gpointer )
538
536
where P : IsA < Application > {
539
- callback_guard ! ( ) ;
540
537
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
541
538
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
542
539
}
543
540
544
541
unsafe extern "C" fn startup_trampoline < P > ( this : * mut ffi:: GApplication , f : glib_ffi:: gpointer )
545
542
where P : IsA < Application > {
546
- callback_guard ! ( ) ;
547
543
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
548
544
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
549
545
}
550
546
551
547
unsafe extern "C" fn notify_action_group_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
552
548
where P : IsA < Application > {
553
- callback_guard ! ( ) ;
554
549
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
555
550
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
556
551
}
557
552
558
553
unsafe extern "C" fn notify_application_id_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
559
554
where P : IsA < Application > {
560
- callback_guard ! ( ) ;
561
555
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
562
556
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
563
557
}
564
558
565
559
unsafe extern "C" fn notify_flags_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
566
560
where P : IsA < Application > {
567
- callback_guard ! ( ) ;
568
561
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
569
562
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
570
563
}
571
564
572
565
unsafe extern "C" fn notify_inactivity_timeout_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
573
566
where P : IsA < Application > {
574
- callback_guard ! ( ) ;
575
567
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
576
568
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
577
569
}
578
570
579
571
#[ cfg( any( feature = "v2_44" , feature = "dox" ) ) ]
580
572
unsafe extern "C" fn notify_is_busy_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
581
573
where P : IsA < Application > {
582
- callback_guard ! ( ) ;
583
574
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
584
575
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
585
576
}
586
577
587
578
unsafe extern "C" fn notify_is_registered_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
588
579
where P : IsA < Application > {
589
- callback_guard ! ( ) ;
590
580
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
591
581
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
592
582
}
593
583
594
584
unsafe extern "C" fn notify_is_remote_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
595
585
where P : IsA < Application > {
596
- callback_guard ! ( ) ;
597
586
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
598
587
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
599
588
}
600
589
601
590
unsafe extern "C" fn notify_resource_base_path_trampoline < P > ( this : * mut ffi:: GApplication , _param_spec : glib_ffi:: gpointer , f : glib_ffi:: gpointer )
602
591
where P : IsA < Application > {
603
- callback_guard ! ( ) ;
604
592
let f: & & ( Fn ( & P ) + ' static ) = transmute ( f) ;
605
593
f ( & Application :: from_glib_borrow ( this) . downcast_unchecked ( ) )
606
594
}
0 commit comments