summaryrefslogtreecommitdiff
path: root/otherlibs/labltk/support/widget.ml
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/support/widget.ml')
-rw-r--r--otherlibs/labltk/support/widget.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/otherlibs/labltk/support/widget.ml b/otherlibs/labltk/support/widget.ml
index 1c89bb5d90..6cc7c74743 100644
--- a/otherlibs/labltk/support/widget.ml
+++ b/otherlibs/labltk/support/widget.ml
@@ -16,6 +16,7 @@
(* $Id$ *)
open StdLabels
+open Support
(*
* Widgets
@@ -68,7 +69,7 @@ let known_class = function
let default_toplevel =
let wname = "." in
let w = Typed (wname, "toplevel") in
- Hashtbl.add' table ~key:wname ~data:w;
+ Hashtbl'.add table ~key:wname ~data:w;
w
(* Dummy widget to which global callbacks are associated *)
@@ -125,7 +126,7 @@ and widget_toplevel_table = [ "toplevel" ]
let new_suffix clas n =
try
- (List.assoc clas naming_scheme) ^ (string_of_int n)
+ (List.assoc clas ~map:naming_scheme) ^ (string_of_int n)
with
Not_found -> "w" ^ (string_of_int n)
@@ -147,7 +148,7 @@ let new_atom ~parent ?name:nom clas =
else parentpath ^ "." ^ name
in
let w = Typed(path,clas) in
- Hashtbl.add' table ~key:path ~data:w;
+ Hashtbl'.add table ~key:path ~data:w;
w
(* Just create a path. Only to check existence of widgets *)