basic viewer showing
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 28 Sep 2003 01:22:08 +0000 (01:22 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 28 Sep 2003 01:22:08 +0000 (01:22 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@270 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c
ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h
ltt/branches/poly/lttv/modules/guiControlFlow/module.c

index 9cea4bc913481d46d86c60a9018e8035eabe802a..9a29ae1a901b6066022da0127723f2f93c65e0ce 100644 (file)
@@ -149,22 +149,28 @@ GuiControlFlow(void)
 
 }
 
+/* Destroys widget also */
+void
+GuiControlFlow_Destructor_Full(ControlFlowData *Control_Flow_Data)
+{
+       /* May already have been done by GTK window closing */
+       if(GTK_IS_WIDGET(Control_Flow_Data->Scrolled_Window_VC))
+               gtk_widget_destroy(Control_Flow_Data->Scrolled_Window_VC);
+
+       GuiControlFlow_Destructor(Control_Flow_Data);
+}
+
 void
 GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data)
 {
        guint index;
 
-       /* May already been done by GTK window closing */
-       if(GTK_IS_WIDGET(Control_Flow_Data->Scrolled_Window_VC))
-               gtk_widget_destroy(Control_Flow_Data->Scrolled_Window_VC);
-       
        //ProcessList_destroy(Control_Flow_Data->Process_List);
        
        g_slist_remove(gControl_Flow_Data_List,Control_Flow_Data);
+       g_free(Control_Flow_Data);
 }
 
-//FIXME : call hGuiEvents_Destructor for corresponding data upon widget destroy
-
 GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data)
 {
        return Control_Flow_Data->Scrolled_Window_VC ;
index 9088e6e1328eb9d5d7759c9f9f5095f1c082f2f4..1855fb2731135a1a137df0fd17ce7f9e5bb4c729 100644 (file)
@@ -8,6 +8,8 @@ typedef struct _ControlFlowData ControlFlowData;
 /* Control Flow Data constructor */
 ControlFlowData *GuiControlFlow(void);
 void
+GuiControlFlow_Destructor_Full(ControlFlowData *Control_Flow_Data);
+void
 GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data);
 GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data);
 
index 41b77a6d983d9cd573803b0e4ba1fd9fb915b522..5b73abae25dd902b52374d88075f977e92f81979 100644 (file)
@@ -68,7 +68,7 @@ G_MODULE_EXPORT void init(LttvModule *self, int argc, char *argv[]) {
 
 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");
 }
 
This page took 0.027068 seconds and 4 git commands to generate.