diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:23 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:23 +0000 |
commit | b8a964643bded3b8b835a93c3fbdae248e90e021 (patch) | |
tree | afbf92ee5db9e720f8eefe4a8607bc8e497b08ac /LED.c | |
parent | 53c921965d341cfa3f14fedf862d9db666c16002 (diff) | |
download | xkbutils-b8a964643bded3b8b835a93c3fbdae248e90e021.tar.gz xkbutils-b8a964643bded3b8b835a93c3fbdae248e90e021.tar.bz2 xkbutils-b8a964643bded3b8b835a93c3fbdae248e90e021.zip |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'LED.c')
-rw-r--r-- | LED.c | 52 |
1 files changed, 22 insertions, 30 deletions
@@ -24,6 +24,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ +/* $XFree86: xc/programs/xkbutils/LED.c,v 1.5 2001/07/25 15:05:25 dawes Exp $ */ #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> @@ -34,13 +35,8 @@ #include <X11/Xmu/Drawing.h> #include <stdio.h> #include <ctype.h> - /* needed for abs() */ -#ifndef X_NOT_STDC_ENV #include <stdlib.h> -#else -int abs(); -#endif #define streq(a,b) (strcmp( (a), (b) ) == 0) @@ -79,13 +75,16 @@ static XtResource resources[] = { }; #undef offset -static void Initialize(); -static void Resize(); -static void Realize(); -static Boolean SetValues(); -static void ClassInitialize(); -static void Destroy(); -static XtGeometryResult QueryGeometry(); +static void ClassInitialize ( void ); +static void Initialize ( Widget request, Widget new, ArgList args, + Cardinal *num_args ); +static void Realize ( Widget w, Mask * mask, XSetWindowAttributes * xswa ); +static void Resize ( Widget w ); +static Boolean SetValues ( Widget current, Widget request, Widget new, + ArgList args, Cardinal *num_args ); +static void Destroy ( Widget w ); +static XtGeometryResult QueryGeometry ( Widget w, XtWidgetGeometry *intended, + XtWidgetGeometry *preferred ); LEDClassRec ledClassRec = { { @@ -139,14 +138,14 @@ WidgetClass ledWidgetClass = (WidgetClass)&ledClassRec; * ****************************************************************/ -static void ClassInitialize() +static void +ClassInitialize(void) { XawInitializeWidgetSet(); } static void -GetPixmaps(lw) - LEDWidget lw; +GetPixmaps(LEDWidget lw) { XGCValues values; GC gc; @@ -213,10 +212,7 @@ static void Initialize(request, new, args, num_args) } /* Initialize */ static void -Realize(w, mask, xswa) - Widget w; - Mask * mask; - XSetWindowAttributes * xswa; +Realize(Widget w, Mask *mask, XSetWindowAttributes *xswa) { LEDWidget lw = (LEDWidget)w; WidgetClass super = simpleWidgetClass; @@ -230,8 +226,7 @@ Realize(w, mask, xswa) } static void -Resize(w) - Widget w; +Resize(Widget w) { GetPixmaps((LEDWidget)w); return; @@ -242,10 +237,8 @@ Resize(w) */ static Boolean -SetValues(current, request, new, args, num_args) - Widget current, request, new; - ArgList args; - Cardinal *num_args; +SetValues(Widget current, Widget request, Widget new, + ArgList args, Cardinal *num_args) { LEDWidget curlw = (LEDWidget) current; LEDWidget newlw = (LEDWidget) new; @@ -275,8 +268,7 @@ SetValues(current, request, new, args, num_args) } static void -Destroy(w) - Widget w; +Destroy(Widget w) { LEDWidget lw = (LEDWidget)w; @@ -292,9 +284,9 @@ Destroy(w) } -static XtGeometryResult QueryGeometry(w, intended, preferred) - Widget w; - XtWidgetGeometry *intended, *preferred; +static XtGeometryResult +QueryGeometry(Widget w, XtWidgetGeometry *intended, + XtWidgetGeometry *preferred) { LEDWidget lw = (LEDWidget)w; |