- /* Register the toolbar insert button */
- toolbar_item_reg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
- h_guicontrolflow);
-
- /* Register the menu item insert entry */
- menu_item_reg("/", "Insert Control Flow Viewer", h_guicontrolflow);
-
+ /* Register the toolbar insert button and menu entry*/
+ lttvwindow_register_constructor("guicontrolflow",
+ "/",
+ "Insert Control Flow Viewer",
+ hGuiControlFlowInsert_xpm,
+ "Insert Control Flow Viewer",
+ h_guicontrolflow);