From 501067260996a2386ad26220f4fe6ad9edb2a76c Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 14 Aug 2004 21:21:37 +0000 Subject: [PATCH] compile fix git-svn-id: http://ltt.polymtl.ca/svn@761 04897980-b3bd-0310-b5e0-8ef037075253 --- .../modules/gui/controlflow/cfv-private.h | 24 ---------------- .../poly/lttv/modules/gui/controlflow/cfv.h | 28 +++++++++++++++++++ .../gui/lttvwindow/lttvwindow/lttvwindow.c | 14 ++++++++++ .../gui/lttvwindow/lttvwindow/lttvwindow.h | 5 +--- 4 files changed, 43 insertions(+), 28 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h index 0c4f63d6..2c3f997a 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h @@ -20,29 +20,5 @@ #define _CFV_PRIVATE_H -struct _ControlFlowData { - - GtkWidget *top_widget; - Tab *tab; - - GtkWidget *box; /* box that contains the hpaned. necessary for it to work */ - GtkWidget *h_paned; - - ProcessList *process_list; - - Drawing_t *drawing; - GtkAdjustment *v_adjust ; - - /* Shown events information */ -// TimeWindow time_window; -// LttTime current_time; - - //guint currently_Selected_Event ; - guint number_of_process; - guint background_info_waiting; /* Number of background requests waited for - in order to have all the info ready. */ - -} ; - #endif //_CFV_PRIVATE_H diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h index f828c5d9..0d2ca332 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h @@ -25,6 +25,34 @@ #include #include "processlist.h" + +struct _ControlFlowData { + + GtkWidget *top_widget; + Tab *tab; + + GtkWidget *box; /* box that contains the hpaned. necessary for it to work */ + GtkWidget *h_paned; + + ProcessList *process_list; + + Drawing_t *drawing; + GtkAdjustment *v_adjust ; + + /* Shown events information */ +// TimeWindow time_window; +// LttTime current_time; + + //guint currently_Selected_Event ; + guint number_of_process; + guint background_info_waiting; /* Number of background requests waited for + in order to have all the info ready. */ + +} ; + + + + typedef struct _ControlFlowData ControlFlowData; /* Control Flow Data constructor */ diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index c44a39bd..69cb1ddd 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -905,6 +905,20 @@ void lttvwindow_events_request_remove_all(Tab *tab, } +/** + * Function to get the current time interval shown on the current tab. + * It will be called by a viewer's hook function to update the + * shown time interval of the viewer and also be called by the constructor + * of the viewer. + * @param tab viewer's tab + * @return time window. + */ + +TimeWindow lttvwindow_get_time_window(Tab *tab) +{ + return tab->time_window; +} + /** * Function to get the current time/event of the current tab. 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 1caf6a40..e39d2ed9 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -666,10 +666,7 @@ void lttvwindow_events_request_remove_all(Tab *tab, * @return time window. */ -static inline TimeWindow lttvwindow_get_time_window(Tab *tab) -{ - return tab->time_window; -} +TimeWindow lttvwindow_get_time_window(Tab *tab); /** -- 2.34.1