compile fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 21:21:37 +0000 (21:21 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 21:21:37 +0000 (21:21 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@761 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/cfv-private.h
ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h

index 0c4f63d687b0fdfdbff750aa9f5a112281783208..2c3f997ab92ad65efa894507e06522a2dd0cc538 100644 (file)
 #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
index f828c5d932493c010677bac3d278fd9dc5612320..0d2ca3323a58c0be78f6caa799f4f7773060525b 100644 (file)
 #include <lttvwindow/mainwindow.h>
 #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 */
index c44a39bdf0d71d6c26b35b6d83ccb12b2bb0d387..69cb1ddda2e35e1ae27d3c70a08e832a017293d2 100644 (file)
@@ -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.
index 1caf6a407046e7e33dbfc10c56c96c0a79be3c34..e39d2ed9fa0e8c67048d7e587c4e78f0200a2e9a 100644 (file)
@@ -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);
 
 
 /**
This page took 0.028796 seconds and 4 git commands to generate.