MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 3c96a98a authored by MARCHE Claude's avatar MARCHE Claude
Browse files

IDE: do not separate splitting and non-splitting transformations

parent fcfb8db4
......@@ -1620,7 +1620,11 @@ let string_of_desc desc =
in Pp.string_of print_trans_desc desc
let () =
let add_submenu_transform name get_trans () =
let transformations =
List.sort (fun (x,_) (y,_) -> String.compare x y)
(List.rev_append (Trans.list_transforms_l ()) (Trans.list_transforms ()))
in
let add_submenu_transform name filter () =
let submenu = tools_factory#add_submenu name in
let submenu = new GMenu.factory submenu ~accel_group in
let iter ((name,_) as desc) =
......@@ -1629,31 +1633,21 @@ let () =
~label:(sanitize_markup name) ~callback () in
ii#misc#set_tooltip_text (string_of_desc desc)
in
let trans = get_trans () in
let trans = List.sort (fun (x,_) (y,_) -> String.compare x y) trans in
let trans = List.filter filter transformations in
List.iter iter trans
in
let add_splitting =
add_submenu_transform
"splitting transformations" Trans.list_transforms_l
in
let add_non_splitting text filt =
add_submenu_transform text
(fun () -> let l = Trans.list_transforms () in List.filter filt l)
in
add_gui_item
(add_non_splitting "non-splitting transformations (a-e)"
(add_submenu_transform "transformations (a-e)"
(fun (x,_) -> x < "eliminate"));
add_gui_item
(add_non_splitting "eliminate"
(add_submenu_transform "transformations (eliminate)"
(fun (x,_) -> x >= "eliminate" && x < "eliminatf"));
add_gui_item
(add_non_splitting "non-splitting transformations (e-i)"
(fun (x,_) -> x >= "eliminatf" && x < "j"));
(add_submenu_transform "transformations (e-r)"
(fun (x,_) -> x >= "eliminatf" && x < "s"));
add_gui_item
(add_non_splitting "non-splitting transformations (j-z)"
(fun (x,_) -> x >= "j"));
add_gui_item add_splitting;
(add_submenu_transform "transformations (s-z)"
(fun (x,_) -> x >= "s"));
add_tool_separator ();
add_tool_item "Bisect in selection" apply_bisect_on_selection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment