Implement ListBoxRowImplExt for activate method
@@ -19,6 +19,21 @@ pub trait ListBoxRowImplExt: ObjectSubclass {
fn list_box_row_activate(&self, list_box_row: &Self::Type);
}
+impl<T: ListBoxRowImpl> ListBoxRowImplExt for T {
+ fn list_box_row_activate(&self, list_box_row: &Self::Type) {
+ unsafe {
+ let data = T::type_data();
+ let parent_class = data.as_ref().get_parent_class() as *mut ffi::GtkListBoxRowClass;
+ if let Some(f) = (*parent_class).activate {
+ f(list_box_row
+ .unsafe_cast_ref::<ListBoxRow>()
+ .to_glib_none()
+ .0)
+ }
+ }
+ }
+}
+
unsafe impl<T: ListBoxRowImpl> IsSubclassable<T> for ListBoxRow {
fn override_vfuncs(class: &mut ::glib::Class<Self>) {
<Bin as IsSubclassable<T>>::override_vfuncs(class);
