X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=trunk%2Flttv%2Flttv%2Fmodules%2Fgui%2Fresourceview%2Fprocesslist.c;h=ee24ba65600ac126780b69be3780214f49b5a7c5;hb=86f3d84b4d12bc599df8dca2cc8d954746d67942;hp=dec03cfca844507654a95e53ffd8f6142be0b667;hpb=d5662043c1570c860ee97af8d6cdd95af95a8c50;p=lttv.git diff --git a/trunk/lttv/lttv/modules/gui/resourceview/processlist.c b/trunk/lttv/lttv/modules/gui/resourceview/processlist.c index dec03cfc..ee24ba65 100644 --- a/trunk/lttv/lttv/modules/gui/resourceview/processlist.c +++ b/trunk/lttv/lttv/modules/gui/resourceview/processlist.c @@ -246,9 +246,9 @@ void update_pixmap_size(ProcessList *process_list, guint width) { int i; for(i=0; irestypes[i].hash_table, - (GHFunc)update_pixmap_size_each, - (gpointer)width); + g_hash_table_foreach(process_list->restypes[i].hash_table, + (GHFunc)update_pixmap_size_each, + GUINT_TO_POINTER(width)); } } @@ -693,6 +693,7 @@ HashedResourceData *resourcelist_obtain_generic(ControlFlowData *resourceview_da /* Prepare hash key */ ru->ru.type = &(resourceview_data->process_list->restypes[res_type]); ru->trace_num = trace_num; + g_assert(id != -1); ru->id = id; /* Search within hash table */