From: compudj Date: Mon, 13 Oct 2003 18:59:54 +0000 (+0000) Subject: minor arch modification : hooks instead of casting data types X-Git-Tag: v0.12.20~3187 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7d5ffafa764fe5d44a0bf6873894011877d728d2;p=lttv.git minor arch modification : hooks instead of casting data types git-svn-id: http://ltt.polymtl.ca/svn@302 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/README b/ltt/branches/poly/README index 0adf43d7..e5b3fcc4 100644 --- a/ltt/branches/poly/README +++ b/ltt/branches/poly/README @@ -5,7 +5,7 @@ Some development libraries are needed for compiling : gtk 2 development libraries (libgtk2.0-dev) glib 2 development libraries (libglib2.0-dev) libpopt development libraries (libpopt-dev) - +libpango development libraries (libpango-dev) To compile the source tree from a tarball, simply follow these steps : diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c index 1c89f701..2877799d 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c @@ -25,13 +25,12 @@ * - point (color, size) * - background color (color) * - * Each item has an array of pointers to operation structures, which define - * the information type selector. We seek the array each time we want to - * draw an item. We execute each operation in order, casting to the right - * operation type corresponding to the information type selector. + * Each item has an array of hooks (hook list). Each hook represents an + * operation to perform. We seek the array each time we want to + * draw an item. We execute each operation in order. * * The array has to be sorted by priority each time we add a task in it. - * A priority is associated with each information type selector. It permits + * A priority is associated with each hook. It permits * to perform background color selection before line or text drawing. We also * draw lines before text, so the text appears over the lines. * @@ -40,7 +39,13 @@ * has to be done in a same DrawContext. The goal there is to keep the offset * of the text and icons over and under the middle line, so a specific * event could be printed as ( R Si 0 for running, scheduled in, cpu 0 ), - * text being easy to replace with icons. + * text being easy to replace with icons. The DrawContext is passed as + * call_data for the operation hooks. * * Author : Mathieu Desnoyers, October 2003 */ + +#include +#include + +