This repository was archived by the owner on Jun 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 7
7
use ffi;
8
8
use gobject_ffi;
9
9
10
+ use std:: fmt;
10
11
use std:: marker;
11
12
use std:: mem;
12
13
use std:: ptr;
@@ -535,6 +536,15 @@ impl SignalInvocationHint {
535
536
}
536
537
}
537
538
539
+ impl fmt:: Debug for SignalInvocationHint {
540
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
541
+ f. debug_struct ( "SignalInvocationHint" )
542
+ . field ( "detail" , & self . detail ( ) )
543
+ . field ( "run_type" , & self . run_type ( ) )
544
+ . finish ( )
545
+ }
546
+ }
547
+
538
548
pub ( crate ) unsafe fn add_signal_with_accumulator < F > (
539
549
type_ : ffi:: GType ,
540
550
name : & str ,
@@ -582,6 +592,14 @@ pub(crate) unsafe fn add_signal_with_accumulator<F>(
582
592
583
593
pub struct SignalClassHandlerToken ( * mut gobject_ffi:: GTypeInstance ) ;
584
594
595
+ impl fmt:: Debug for SignalClassHandlerToken {
596
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
597
+ f. debug_tuple ( "SignalClassHandlerToken" )
598
+ . field ( & unsafe { :: Object :: from_glib_borrow ( self . 0 as * mut gobject_ffi:: GObject ) } )
599
+ . finish ( )
600
+ }
601
+ }
602
+
585
603
pub ( crate ) unsafe fn add_signal_with_class_handler < F > (
586
604
type_ : ffi:: GType ,
587
605
name : & str ,
You can’t perform that action at this time.
0 commit comments