ML_2 (gtk_math_view_select, GtkMathView_val, Element_val, Unit)
ML_2 (gtk_math_view_unselect, GtkMathView_val, Element_val, Unit)
ML_2 (gtk_math_view_is_selected, GtkMathView_val, Element_val, Val_bool)
-OML_3 (gtk_math_view_get_element_at, GtkMathView_val, Int_val, Int_val, Val_Element_ref)
+OML_3 (gtk_math_view_get_element_at, GtkMathView_val, Int_val, Int_val, Val_Element)
ML_1 (gtk_math_view_get_width, GtkMathView_val, Val_int)
ML_1 (gtk_math_view_get_height, GtkMathView_val, Val_int)
ML_3 (gtk_math_view_set_top, GtkMathView_val, Int_val, Int_val, Unit)
nr = (GdomeElement*) Field(Field(arg1,0),1);
}
- if (nr != NULL) {
- gdome_el_ref(nr, &exc);
- assert(exc == 0);
- }
-
- res = Val_Element(nr);
+ res = Val_Element_ref(nr);
if (res==Val_int(0)) {
assert(0);
}
GdomeException exc = 0;
GdomeElement* elem = (GdomeElement*) Field(Field(arg1,0),1);
assert(elem != NULL);
- gdome_el_ref(elem, &exc);
- assert(exc == 0);
- res = Val_option_ptr(elem, Val_Element);
+ res = Val_option_ptr(elem, Val_Element_ref);
}
CAMLreturn(res);