From d47b33d2c29ed3d8ead828e309f7d9d39a516495 Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 9 Aug 2004 03:14:41 +0000 Subject: [PATCH] viewer_constructor cleanup git-svn-id: http://ltt.polymtl.ca/svn@689 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/controlflow/eventhooks.c | 4 ++-- .../poly/lttv/modules/gui/controlflow/eventhooks.h | 2 +- .../poly/lttv/modules/gui/detailedevents/events.c | 10 +++++----- .../lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c | 2 +- .../modules/gui/lttvwindow/lttvwindow/lttvwindow.h | 4 +--- .../poly/lttv/modules/gui/statistics/statistics.c | 4 ++-- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index 2b7efbc9..2b8dbdb8 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -224,9 +224,9 @@ void request_background_data(ControlFlowData *control_flow_data) * @return The widget created. */ GtkWidget * -h_guicontrolflow(Tab *tab, LttvTracesetSelector * s, char * key) +h_guicontrolflow(Tab *tab) { - g_info("h_guicontrolflow, %p, %p, %s", tab, s, key); + g_info("h_guicontrolflow, %p", tab); ControlFlowData *control_flow_data = guicontrolflow() ; control_flow_data->tab = tab; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h index d5d610a0..73f9ab92 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.h @@ -57,7 +57,7 @@ void send_test_data(ProcessList *process_list, Drawing_t *drawing); -GtkWidget *h_guicontrolflow(Tab *tab, LttvTracesetSelector * s, char * key); +GtkWidget *h_guicontrolflow(Tab *tab); int event_selected_hook(void *hook_data, void *call_data); diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 074dc3bb..f2c2ff51 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -151,9 +151,9 @@ void remove_context_hooks(EventViewerData * event_viewer_data, LttvTracesetContext * tsc); //! Event Viewer's constructor hook -GtkWidget *h_gui_events(Tab *tab, LttvTracesetSelector * s, char* key); +GtkWidget *h_gui_events(Tab *tab); //! Event Viewer's constructor -EventViewerData *gui_events(Tab *tab, LttvTracesetSelector *s, char *key); +EventViewerData *gui_events(Tab *tab); //! Event Viewer's destructor void gui_events_destructor(EventViewerData *event_viewer_data); void gui_events_free(EventViewerData *event_viewer_data); @@ -213,9 +213,9 @@ enum * @return The widget created. */ GtkWidget * -h_gui_events(Tab * tab, LttvTracesetSelector * s, char* key) +h_gui_events(Tab * tab) { - EventViewerData* event_viewer_data = gui_events(tab, s, key) ; + EventViewerData* event_viewer_data = gui_events(tab) ; if(event_viewer_data) return event_viewer_data->hbox_v; else return NULL; @@ -229,7 +229,7 @@ h_gui_events(Tab * tab, LttvTracesetSelector * s, char* key) * @return The Event viewer data created. */ EventViewerData * -gui_events(Tab *tab, LttvTracesetSelector * s,char* key ) +gui_events(Tab *tab) { LttTime end; GtkTreeViewColumn *column; diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index e8028fd2..875d05f5 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -212,7 +212,7 @@ void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor) viewer_container = tab->viewer_container; s = construct_traceset_selector(tab->traceset_info->traceset); - viewer = (GtkWidget*)constructor(tab, s, "Traceset_Selector"); + viewer = (GtkWidget*)constructor(tab); if(viewer) { //gtk_multivpaned_widget_add(GTK_MULTIVPANED(multivpaned), viewer); diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index a555c75e..bc052152 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -264,9 +264,7 @@ FIXME : explain other important events /* constructor a the viewer */ -//FIXME explain LttvTracesetSelector and key -typedef GtkWidget * (*lttvwindow_viewer_constructor) - (Tab *tab, LttvTracesetSelector * s, char *key); +typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); /** diff --git a/ltt/branches/poly/lttv/modules/gui/statistics/statistics.c b/ltt/branches/poly/lttv/modules/gui/statistics/statistics.c index 46e5cec9..a4a0567c 100644 --- a/ltt/branches/poly/lttv/modules/gui/statistics/statistics.c +++ b/ltt/branches/poly/lttv/modules/gui/statistics/statistics.c @@ -52,7 +52,7 @@ static void request_background_data(StatisticViewerData *svd); GtkWidget *guistatistic_get_widget(StatisticViewerData *svd); //! Statistic Viewer's constructor hook -GtkWidget *h_gui_statistic(Tab *tab, LttvTracesetSelector * s, char * key); +GtkWidget *h_gui_statistic(Tab *tab); //! Statistic Viewer's constructor StatisticViewerData *gui_statistic(Tab *tab); //! Statistic Viewer's destructor @@ -224,7 +224,7 @@ gui_statistic_destructor(StatisticViewerData *statistic_viewer_data) * @return The widget created. */ GtkWidget * -h_gui_statistic(Tab *tab, LttvTracesetSelector * s, char * key) +h_gui_statistic(Tab *tab) { StatisticViewerData* statistic_viewer_data = gui_statistic(tab) ; -- 2.34.1