add filter to event hook
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Sep 2005 02:50:14 +0000 (02:50 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Sep 2005 02:50:14 +0000 (02:50 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1103 04897980-b3bd-0310-b5e0-8ef037075253

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

index df1db075f3d515d04844911dcfa7b33c6f64f213..2a58cb215cb62b847a5965e6faae938d28ddb5b6 100644 (file)
@@ -929,6 +929,13 @@ int event_hook(void *hook_data, void *call_data)
   EventViewerData *event_viewer_data = (EventViewerData*)hook_data;
   LttvTracefileContext *tfc = (LttvTracefileContext*)call_data;
   LttEvent *e = ltt_tracefile_get_event(tfc->tf);
+
+  LttvFilter *filter = lttvwindow_get_filter(event_viewer_data->tab);
+  if(filter != NULL && filter->head != NULL)
+    if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
+          tfc->t_context->t,tfc))
+      return FALSE;
+
   LttFacility *facility = ltt_event_facility(e);
   LttEventType *event_type = ltt_event_eventtype(e);
   LttField *field = ltt_event_field(e);
@@ -941,7 +948,7 @@ int event_hook(void *hook_data, void *call_data)
   GtkTreeIter iter;
 
   GString *desc = g_string_new("");
-
+  
   LttvTracesetContextPosition *pos =
     lttv_traceset_context_position_new(tfc->t_context->ts_context);
 
This page took 0.024895 seconds and 4 git commands to generate.