From f3f32e2505438f236dfdc696f0124c787bc01f33 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 4 Oct 2004 16:54:41 +0000 Subject: BSD port fixes and more code cleanup. --- TachometerP.h | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) (limited to 'TachometerP.h') diff --git a/TachometerP.h b/TachometerP.h index 50a4a62a..1238ab03 100644 --- a/TachometerP.h +++ b/TachometerP.h @@ -1,17 +1,11 @@ +/* TachometerP.h -- Tachometer widget private data */ #ifndef _TachometerP_h #define _TachometerP_h -/*********************************************************************** - * - * Tachometer Widget Private Data - * - ***********************************************************************/ - #include #include /* New fields for the Tachometer widget class record */ - typedef struct {int foo;} TachometerClassPart; /* Full class record declaration */ @@ -26,32 +20,17 @@ extern TachometerClassRec tachometerClassRec; /* New fields for the Tachometer widget record */ typedef struct { /* resources */ - Pixel needle; - Pixel scale; - Pixel circle; - int value; - int speed; - + Pixel needle, scale, circle; + int value, speed; /* private state */ - GC needle_GC; - GC scale_GC; - GC circle_GC; - GC background_GC; + GC needle_GC, scale_GC, circle_GC, background_GC; /* We need to store the width and height separately, because when */ /* we get a resize request, we need to know if the window has */ /* gotten bigger. */ - Dimension width; - Dimension height; - Dimension internal_border; + Dimension width, height, internal_border; } TachometerPart; - -/**************************************************************** - * - * Full instance record declaration - * - ****************************************************************/ - +/* Full instance record declaration */ typedef struct _TachometerRec { CorePart core; SimplePart simple; -- cgit v1.2.1