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

Commit 7c647aa

Browse files
committed
Use new init/clear functions for glib::Date
1 parent c54924e commit 7c647aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/date.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ glib_wrapper! {
2121
match fn {
2222
copy => |ptr| gobject_sys::g_boxed_copy(glib_sys::g_date_get_type(), ptr as *const _) as *mut _,
2323
free => |ptr| glib_sys::g_date_free(ptr),
24+
init => |_ptr| (),
25+
clear => |ptr| glib_sys::g_date_clear(ptr, 1),
2426
get_type => || glib_sys::g_date_get_type(),
2527
}
2628
}

0 commit comments

Comments
 (0)