From ae276492f8749f4d1b2c938e976832ed3eaad986 Mon Sep 17 00:00:00 2001 From: letouzey Date: Sat, 8 Dec 2012 20:44:56 +0000 Subject: Coqide: use labels for all labelled functions This isn't mandatory, but it's a good practice. For instance it allows to easily locate all ~callback arguments. Cf. warning 6 of OCaml 4 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16051 85f007b7-540e-0410-9357-904b9bb8a0f7 --- ide/utils/configwin_ihm.ml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ide/utils') diff --git a/ide/utils/configwin_ihm.ml b/ide/utils/configwin_ihm.ml index 4f8a3a10fa..ad12ad5fdb 100644 --- a/ide/utils/configwin_ihm.ml +++ b/ide/utils/configwin_ihm.ml @@ -1015,7 +1015,7 @@ class configuration_box (tt : GData.tooltips) conf_struct = let set_icon iter = function | None -> () - | Some icon -> tree#set iter icon_col icon + | Some icon -> tree#set ~row:iter ~column:icon_col icon in (* Populate the tree *) @@ -1036,9 +1036,9 @@ class configuration_box (tt : GData.tooltips) conf_struct = method apply () = List.iter (fun param -> param#apply) params end in - let () = tree#set new_iter label_col label in + let () = tree#set ~row:new_iter ~column:label_col label in let () = set_icon new_iter icon in - let () = tree#set new_iter box_col widget in + let () = tree#set ~row:new_iter ~column:box_col widget in () | Section_list (label, icon, struct_list) -> let widget = @@ -1049,9 +1049,9 @@ class configuration_box (tt : GData.tooltips) conf_struct = method box = box#coerce end in - let () = tree#set new_iter label_col label in + let () = tree#set ~row:new_iter ~column:label_col label in let () = set_icon new_iter icon in - let () = tree#set new_iter box_col widget in + let () = tree#set ~row:new_iter ~column:box_col widget in List.iter (make_tree (Some new_iter)) struct_list in -- cgit v1.2.3