diff options
Diffstat (limited to 'otherlibs/labltk/builtin/builtini_bindtags.ml')
-rw-r--r-- | otherlibs/labltk/builtin/builtini_bindtags.ml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/otherlibs/labltk/builtin/builtini_bindtags.ml b/otherlibs/labltk/builtin/builtini_bindtags.ml new file mode 100644 index 0000000000..7bbfe5963c --- /dev/null +++ b/otherlibs/labltk/builtin/builtini_bindtags.ml @@ -0,0 +1,9 @@ +let cCAMLtoTKbindings = function + `Widget v1 -> cCAMLtoTKwidget v1 +| `Tag v1 -> TkToken v1 + +(* this doesn't really belong here *) +let cTKtoCAMLbindings s = + if String.length s > 0 & s.[0] = '.' then + `Widget (cTKtoCAMLwidget s) + else `Tag s |