X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fmodule.c;h=db6d256f957cc29e97f7ce7ff125db636f822173;hb=ca0f8a8e5907fe8aa588324b1b268d3089b46160;hp=258356e65f3f067a4778df32f1c04f57d64c1d24;hpb=2d262115fc06b5ffb6038207a6d0c1d5f81763c2;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/module.c b/ltt/branches/poly/lttv/modules/gui/controlflow/module.c index 258356e6..db6d256f 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/module.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/module.c @@ -69,13 +69,12 @@ static void init() { g_info("GUI ControlFlow Viewer init()"); - /* 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("/", + "Insert Control Flow Viewer", + hGuiControlFlowInsert_xpm, + "Insert Control Flow Viewer", + h_guicontrolflow); } void destroy_walk(gpointer data, gpointer user_data) @@ -100,12 +99,8 @@ static void destroy() { g_slist_free(g_control_flow_data_list); - /* Unregister the toolbar insert button */ - lttvwindow_unregister_toolbar(h_guicontrolflow); - - /* Unregister the menu item insert entry */ - lttvwindow_unregister_menu(h_guicontrolflow); - + /* Unregister the toolbar insert button and menu entry */ + lttvwindow_unregister_constructor(h_guicontrolflow); }