Initial commit for control flow view
[lttv.git] / lttv / modules / gui / controlflow / drawitem.c
index d97628b021f3b9abed37236c0693a612328662b5..d4e2c90ac9c540dce403c29696a5ca82f30da990 100644 (file)
 #include <lttv/attribute.h>
 #include <lttv/iattribute.h>
 #include <string.h>
-
+#ifdef BABEL_CLEANUP
 #include <lttv/tracecontext.h>
+#endif //babel_cleanup
 #include <lttv/state.h>
 #include <lttv/lttv.h>
 
@@ -214,6 +215,7 @@ gboolean draw_icon( void *hook_data, void *call_data)
 {
   PropertiesIcon *properties = (PropertiesIcon*)hook_data;
   DrawContext *draw_context = (DrawContext*)call_data;
+  gboolean retval;
 
   LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvAttributeValue value;
@@ -222,8 +224,9 @@ gboolean draw_icon( void *hook_data, void *call_data)
 
   strcat(icon_name, properties->icon_name);
   
-  g_assert(lttv_iattribute_find_by_path(attributes, icon_name,
-      LTTV_POINTER, &value));
+  retval= lttv_iattribute_find_by_path(attributes, icon_name, LTTV_POINTER,
+    &value);
+  g_assert(retval);
   if(unlikely(*(value.v_pointer) == NULL))
   {
     *(value.v_pointer) = icon_info = g_new(IconStruct,1);
This page took 0.023163 seconds and 4 git commands to generate.