X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2Fmodule.c;h=458bfeb9deb1bcfc4f12b5391da3b77ad012a92c;hb=41a769851adc36c024821e859ed6569409f71d8f;hp=5b73abae25dd902b52374d88075f977e92f81979;hpb=784177915a639df2d016b63ac6a9cce3101cc084;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c index 5b73abae..458bfeb9 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c @@ -58,11 +58,11 @@ G_MODULE_EXPORT void init(LttvModule *self, int argc, char *argv[]) { g_critical("GUI ControlFlow Viewer init()"); /* Register the toolbar insert button */ - ToolbarItemReg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer", + toolbar_item_reg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer", hGuiControlFlow); /* Register the menu item insert entry */ - MenuItemReg("/", "Insert Control Flow Viewer", hGuiControlFlow); + menu_item_reg("/", "Insert Control Flow Viewer", hGuiControlFlow); } @@ -84,14 +84,14 @@ G_MODULE_EXPORT void destroy() { g_critical("GUI Control Flow Viewer destroy()"); int i; - ControlFlowData *Control_Flow_Data; - g_slist_foreach(gControl_Flow_Data_List, destroy_walk, NULL ); + g_slist_free(gControl_Flow_Data_List); + /* Unregister the toolbar insert button */ - ToolbarItemUnreg(hGuiControlFlow); + toolbar_item_unreg(hGuiControlFlow); /* Unregister the menu item insert entry */ - MenuItemUnreg(hGuiControlFlow); + menu_item_unreg(hGuiControlFlow); }