Skip to content

Commit 553760e

Browse files
gdk4-x11: don't mark safe functions as unsafe
1 parent d69c23e commit 553760e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gdk4-x11/src/x11_display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ impl X11Display {
3737
#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))]
3838
#[doc(alias = "gdk_x11_display_get_xcursor")]
3939
#[doc(alias = "get_xcursor")]
40-
pub unsafe fn xcursor(&self, cursor: &gdk::Cursor) -> xlib::Cursor {
40+
pub fn xcursor(&self, cursor: &gdk::Cursor) -> xlib::Cursor {
4141
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")]
48-
pub unsafe fn xrootwindow(&self) -> xlib::Window {
48+
pub fn xrootwindow(&self) -> xlib::Window {
4949
ffi::gdk_x11_display_get_xrootwindow(self.to_glib_none().0)
5050
}
5151

gdk4-x11/src/x11_monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl X11Monitor {
1313
#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))]
1414
#[doc(alias = "gdk_x11_monitor_get_output")]
1515
#[doc(alias = "get_output")]
16-
pub unsafe fn output(&self) -> xlib::XID {
16+
pub fn output(&self) -> xlib::XID {
1717
ffi::gdk_x11_monitor_get_output(self.to_glib_none().0)
1818
}
1919
}

gdk4-x11/src/x11_surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl X11Surface {
1313
#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))]
1414
#[doc(alias = "gdk_x11_surface_get_xid")]
1515
#[doc(alias = "get_xid")]
16-
pub unsafe fn xid(&self) -> xlib::Window {
16+
pub fn xid(&self) -> xlib::Window {
1717
ffi::gdk_x11_surface_get_xid(self.to_glib_none().0)
1818
}
1919

0 commit comments

Comments
 (0)