X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FCFV.c;h=9a29ae1a901b6066022da0127723f2f93c65e0ce;hb=784177915a639df2d016b63ac6a9cce3101cc084;hp=9cea4bc913481d46d86c60a9018e8035eabe802a;hpb=1ab818de1d890bf716413090d943858bfef8d3d3;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c index 9cea4bc9..9a29ae1a 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c @@ -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 ;