]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/lablgtk/lablgtk_20000829-0.1.0/ml_gtk.h
* click signal changed: now the element argument is optional
[helm.git] / helm / DEVEL / lablgtk / lablgtk_20000829-0.1.0 / ml_gtk.h
1 /* $Id$ */
2
3 #define GtkObject_val(obj) ((GtkObject*)Field(obj,1))
4 value Val_GtkObject (GtkObject *w);
5 value Val_GtkObject_sink (GtkObject *w);
6 #define Val_GtkAny(w) Val_GtkObject((GtkObject*)w)
7 #define Val_GtkAny_sink(w) Val_GtkObject_sink((GtkObject*)w)
8 #define Val_GtkWidget Val_GtkAny
9 #define Val_GtkWidget_sink Val_GtkAny_sink
10
11 #ifdef GTK_NO_CHECK_CASTS
12 #define check_cast(f,v) f(Pointer_val(v))
13 #else
14 #define check_cast(f,v) (Pointer_val(v) == NULL ? NULL : f(Pointer_val(v)))
15 #endif