diff --git a/WINGs/WINGs/WINGsP.h b/WINGs/WINGs/WINGsP.h index 87765c1d..de014124 100644 --- a/WINGs/WINGs/WINGsP.h +++ b/WINGs/WINGs/WINGsP.h @@ -402,7 +402,7 @@ void W_BalloonHandleLeaveView(WMView *view); /* ---[ wcolor.c ]-------------------------------------------------------- */ -typedef struct W_Color { +struct W_Color { struct W_Screen *screen; XColor color; @@ -412,7 +412,7 @@ typedef struct W_Color { struct { unsigned int exact:1; } flags; -} W_Color; +}; #define W_PIXEL(c) (c)->color.pixel @@ -504,7 +504,7 @@ int W_GetTextHeight(WMFont *font, const char *text, int width, int wrap); /* ---[ wpixmap.c ]------------------------------------------------------- */ -typedef struct W_Pixmap { +struct W_Pixmap { struct W_Screen *screen; Pixmap pixmap; Pixmap mask; @@ -512,7 +512,7 @@ typedef struct W_Pixmap { unsigned short height; short depth; short refCount; -} W_Pixmap; +}; /* ---[ wview.c ]--------------------------------------------------------- */ @@ -526,7 +526,7 @@ typedef struct W_ViewDelegate { unsigned int*, unsigned int*); } W_ViewDelegate; -typedef struct W_View { +struct W_View { struct W_Screen *screen; WMWidget *self; /* must point to the widget the view belongs to */ @@ -599,7 +599,7 @@ typedef struct W_View { } flags; int refCount; -} W_View; +}; #define W_VIEW_REALIZED(view) (view)->flags.realized #define W_VIEW_MAPPED(view) (view)->flags.mapped diff --git a/src/geomview.c b/src/geomview.c index 859cb4c6..3564ffac 100644 --- a/src/geomview.c +++ b/src/geomview.c @@ -4,7 +4,7 @@ #include "geomview.h" -typedef struct W_GeometryView { +struct W_GeometryView { W_Class widgetClass; WMView *view; @@ -25,7 +25,7 @@ typedef struct W_GeometryView { } data; unsigned showPosition:1; -} WGeometryView; +}; static void handleEvents(XEvent * event, void *clientData); static void paint(WGeometryView * gview);