X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawitem.c;h=d4e2c90ac9c540dce403c29696a5ca82f30da990;hb=88bf15f0f2a239186b5cf6fcf8711786907ca483;hp=d97628b021f3b9abed37236c0693a612328662b5;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/modules/gui/controlflow/drawitem.c b/lttv/modules/gui/controlflow/drawitem.c index d97628b0..d4e2c90a 100644 --- a/lttv/modules/gui/controlflow/drawitem.c +++ b/lttv/modules/gui/controlflow/drawitem.c @@ -105,8 +105,9 @@ #include #include #include - +#ifdef BABEL_CLEANUP #include +#endif //babel_cleanup #include #include @@ -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);