event list get filter when starts
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Sep 2005 19:32:44 +0000 (19:32 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Sep 2005 19:32:44 +0000 (19:32 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1145 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/detailedevents/events.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h

index 3ae7bbd0afb2fc9acb829f3e66de775c3448e7eb..f16ec214bb0fa1432cf0b323045a683bce9ee295 100644 (file)
@@ -265,7 +265,7 @@ gui_events(Tab *tab)
   event_viewer_data->last_event =
     lttv_traceset_context_position_new(tsc);
 
-  event_viewer_data->main_win_filter = NULL;
+  event_viewer_data->main_win_filter = lttvwindow_get_filter(tab);
 
   event_viewer_data->update_cursor = TRUE;
 
index 225104c780a5f7b27b12c9f9f8e090c800e99253..fe67fb70cff71b0cbce669c2f1e6d09040b8dee6 100644 (file)
@@ -1024,15 +1024,14 @@ LttTime lttvwindow_get_current_time(Tab *tab)
 
 /**
  * Function to get the filter of the current tab.
- * @param main_win, the main window the viewer belongs to.
  * @param filter, a pointer to a filter.
+ *
+ * returns the current filter
  */
-#if 0
 LttvFilter *lttvwindow_get_filter(Tab *tab)
 {
   return tab->filter;
 }
-#endif //0
 
 /**
  * Function to set the filter of the current tab.
index d0a97c07d07cb02cec2dd3dc9f4c1e690675cfe4..87f186fc6cd39847476d1cc56d74d3ca24dc8ef2 100644 (file)
@@ -486,6 +486,18 @@ void lttvwindow_unregister_filter_notify(Tab *tab,
                                          gpointer     hook_data);
 
 
+/**
+ * Function to get the current filter of the main window : useful at viewer
+ * instanciation.
+ * 
+ * @param tab the tab the viewer belongs to.
+ *
+ * returns : the current filter.
+ */
+
+
+LttvFilter *lttvwindow_get_filter(Tab *tab);
+
 /**
  * Function to register a hook function for a viewer to set/update its 
  * current time.
This page took 0.026537 seconds and 4 git commands to generate.