- /* Register the toolbar insert button */
- lttvwindow_register_toolbar(hGuiControlFlowInsert_xpm,
- "Insert Control Flow Viewer", h_guicontrolflow);
-
- /* Register the menu item insert entry */
- lttvwindow_register_menu("/", "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);