X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Fhistogram%2Fhistodrawitem.c;h=5e5d75549a50f74c0d110aa208fdbf529b7ddb37;hb=64242d134638369e81510c880ae66a88beba9c1b;hp=aafa515d48849a87a08c2fb87a2a953bbeb1929b;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/modules/gui/histogram/histodrawitem.c b/lttv/modules/gui/histogram/histodrawitem.c index aafa515d..5e5d7554 100644 --- a/lttv/modules/gui/histogram/histodrawitem.c +++ b/lttv/modules/gui/histogram/histodrawitem.c @@ -106,11 +106,11 @@ #include #include -#include #include #include #include "histodrawitem.h" +#include "histodrawing.h" #define MAX_PATH_LEN 256 @@ -213,6 +213,7 @@ gboolean histo_draw_icon( void *hook_data, void *call_data) { histo_PropertiesIcon *properties = (histo_PropertiesIcon*)hook_data; histo_DrawContext *draw_context = (histo_DrawContext*)call_data; + gboolean retval; LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); LttvAttributeValue value; @@ -221,8 +222,9 @@ gboolean histo_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(histo_IconStruct,1);