macosx tk says page
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10231 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
f5fc4d5207
commit
5ed9193051
|
@ -11,13 +11,13 @@ let cCAMLtoTKscrollValue = function
|
||||||
|
|
||||||
(* str l -> scrllv -> str l *)
|
(* str l -> scrllv -> str l *)
|
||||||
let cTKtoCAMLscrollValue = function
|
let cTKtoCAMLscrollValue = function
|
||||||
"scroll"::n::"pages"::l ->
|
"scroll"::n::("pages"|"page")::l ->
|
||||||
ScrollPage (int_of_string n), l
|
ScrollPage (int_of_string n), l
|
||||||
| "scroll"::n::"units"::l ->
|
| "scroll"::n::"units"::l ->
|
||||||
ScrollUnit (int_of_string n), l
|
ScrollUnit (int_of_string n), l
|
||||||
| "moveto"::f::l ->
|
| "moveto"::f::l ->
|
||||||
MoveTo (float_of_string f), l
|
MoveTo (float_of_string f), l
|
||||||
| _ -> raise (Invalid_argument "TKtoCAMLscrollValue")
|
| l -> raise (Invalid_argument (String.concat " " ("TKtoCAMLscrollValue"::l)))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
##else
|
##else
|
||||||
|
@ -33,13 +33,13 @@ let cCAMLtoTKscrollValue : scrollValue -> tkArgs = function
|
||||||
|
|
||||||
(* str l -> scrllv -> str l *)
|
(* str l -> scrllv -> str l *)
|
||||||
let cTKtoCAMLscrollValue = function
|
let cTKtoCAMLscrollValue = function
|
||||||
| "scroll" :: n :: "pages" :: l ->
|
| "scroll" :: n :: ("pages"|"page") :: l ->
|
||||||
`Page (int_of_string n), l
|
`Page (int_of_string n), l
|
||||||
| "scroll" :: n :: "units" :: l ->
|
| "scroll" :: n :: "units" :: l ->
|
||||||
`Unit (int_of_string n), l
|
`Unit (int_of_string n), l
|
||||||
| "moveto" :: f :: l ->
|
| "moveto" :: f :: l ->
|
||||||
`Moveto (float_of_string f), l
|
`Moveto (float_of_string f), l
|
||||||
| _ -> raise (Invalid_argument "TKtoCAMLscrollValue")
|
| l -> raise (Invalid_argument (String.concat " " ("TKtoCAMLscrollValue"::l)))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
##endif
|
##endif
|
||||||
|
|
Loading…
Reference in New Issue