unreg_show_viewer(show_event_detail,event_viewer_data, event_viewer_data->mw);
unreg_update_traceset(traceset_changed,event_viewer_data, event_viewer_data->mw);
+ g_free(event_viewer_data->filter_key);
g_event_viewer_data_list = g_slist_remove(g_event_viewer_data_list, event_viewer_data);
g_free(event_viewer_data);
}
/* May already been done by GTK window closing */
if(GTK_IS_WIDGET(event_viewer_data->hbox_v)){
+ gui_events_free(event_viewer_data);
gtk_widget_destroy(event_viewer_data->hbox_v);
- g_free(event_viewer_data->filter_key);
event_viewer_data = NULL;
}
on_MWindow_destroy (GtkObject *object,
gpointer user_data)
{
- MainWindow *Main_Window = (MainWindow*)user_data;
-
+ MainWindow *Main_Window = get_window_data_struct((GtkWidget*)object);
+ GtkWidget *widget;
+ Tab *tab = Main_Window->tab;
+
g_printf("There are : %d windows\n",g_slist_length(g_main_window_list));
+ while(tab){
+ while(tab->multi_vpaned->num_children){
+ gtk_multi_vpaned_widget_delete(tab->multi_vpaned);
+ }
+ tab = tab->next;
+ }
+
g_win_count--;
if(g_win_count == 0)
gtk_main_quit ();
{
/* May already been done by GTK window closing */
if(GTK_IS_WIDGET(statistic_viewer_data->hpaned_v)){
+ gui_statistic_free(statistic_viewer_data);
gtk_widget_destroy(statistic_viewer_data->hpaned_v);
statistic_viewer_data = NULL;
}