git-svn-id: http://ltt.polymtl.ca/svn@319 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / module.c
index 41b77a6d983d9cd573803b0e4ba1fd9fb915b522..458bfeb9deb1bcfc4f12b5391da3b77ad012a92c 100644 (file)
@@ -58,17 +58,17 @@ 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);
        
 }
 
 void destroy_walk(gpointer data, gpointer user_data)
 {
-       GuiControlFlow_Destructor((ControlFlowData*)data);
+       GuiControlFlow_Destructor_Full((ControlFlowData*)data);
        g_critical("Walk destroy GUI Control Flow Viewer");
 }
 
@@ -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);
        
 }
This page took 0.022905 seconds and 4 git commands to generate.