File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ impl X11Display {
3838 #[ doc( alias = "gdk_x11_display_get_xcursor" ) ]
3939 #[ doc( alias = "get_xcursor" ) ]
4040 pub fn xcursor ( & self , cursor : & gdk:: Cursor ) -> xlib:: Cursor {
41- ffi:: gdk_x11_display_get_xcursor ( self . to_glib_none ( ) . 0 , cursor. to_glib_none ( ) . 0 )
41+ unsafe { ffi:: gdk_x11_display_get_xcursor ( self . to_glib_none ( ) . 0 , cursor. to_glib_none ( ) . 0 ) }
4242 }
4343
4444 #[ cfg( any( feature = "xlib" , feature = "dox" ) ) ]
4545 #[ cfg_attr( feature = "dox" , doc( cfg( feature = "xlib" ) ) ) ]
4646 #[ doc( alias = "gdk_x11_display_get_xrootwindow" ) ]
4747 #[ doc( alias = "get_xrootwindow" ) ]
4848 pub fn xrootwindow ( & self ) -> xlib:: Window {
49- ffi:: gdk_x11_display_get_xrootwindow ( self . to_glib_none ( ) . 0 )
49+ unsafe { ffi:: gdk_x11_display_get_xrootwindow ( self . to_glib_none ( ) . 0 ) }
5050 }
5151
5252 #[ cfg( any( feature = "xlib" , feature = "dox" ) ) ]
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ impl X11Monitor {
1414 #[ doc( alias = "gdk_x11_monitor_get_output" ) ]
1515 #[ doc( alias = "get_output" ) ]
1616 pub fn output ( & self ) -> xlib:: XID {
17- ffi:: gdk_x11_monitor_get_output ( self . to_glib_none ( ) . 0 )
17+ unsafe { ffi:: gdk_x11_monitor_get_output ( self . to_glib_none ( ) . 0 ) }
1818 }
1919}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ impl X11Surface {
1414 #[ doc( alias = "gdk_x11_surface_get_xid" ) ]
1515 #[ doc( alias = "get_xid" ) ]
1616 pub fn xid ( & self ) -> xlib:: Window {
17- ffi:: gdk_x11_surface_get_xid ( self . to_glib_none ( ) . 0 )
17+ unsafe { ffi:: gdk_x11_surface_get_xid ( self . to_glib_none ( ) . 0 ) }
1818 }
1919
2020 #[ cfg( any( feature = "xlib" , feature = "dox" ) ) ]
You can’t perform that action at this time.
0 commit comments