Use from_glib_borrow() for more vfunc parameters

This commit is contained in:
Sebastian Dröge 2018-07-30 12:24:12 +03:00
parent d1f90d0fea
commit bf63a823cd
2 changed files with 3 additions and 3 deletions

View file

@ -548,7 +548,7 @@ where
let imp = element.get_impl();
panic_to_error!(&wrap, &element.panicked(), false, {
imp.event(&wrap, &from_glib_none(event_ptr))
imp.event(&wrap, &from_glib_borrow(event_ptr))
}).to_glib()
}

View file

@ -172,7 +172,7 @@ where
let imp = bin.get_impl();
panic_to_error!(&wrap, &bin.panicked(), false, {
imp.add_element(&wrap, &from_glib_none(element))
imp.add_element(&wrap, &from_glib_borrow(element))
}).to_glib()
}
@ -190,7 +190,7 @@ where
let imp = bin.get_impl();
panic_to_error!(&wrap, &bin.panicked(), false, {
imp.remove_element(&wrap, &from_glib_none(element))
imp.remove_element(&wrap, &from_glib_borrow(element))
}).to_glib()
}