From 78aa43a47bdcb3d88d267d8b65377b12d75a017b Mon Sep 17 00:00:00 2001 From: xHire Date: Fri, 22 May 2009 18:39:29 +0200 Subject: Rectified the coding style in widget .h files --- src/widget/widget_catchkey.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src/widget/widget_catchkey.h') diff --git a/src/widget/widget_catchkey.h b/src/widget/widget_catchkey.h index 9a1da1c..a030f6e 100644 --- a/src/widget/widget_catchkey.h +++ b/src/widget/widget_catchkey.h @@ -1,14 +1,13 @@ #ifndef WIDGET_CATCHKEY_H +#define WIDGET_CATCHKEY_H -# define WIDGET_CATCHKEY_H +#include "main.h" +#include "widget.h" -# include "main.h" -# include "widget.h" +#define WIDGET_CATCHKEY_NOKEY -1 -# define WIDGET_CATCHKEY_WIDTH 110 -# define WIDGET_CATCHKEY_HEIGHT 12 - -# define WIDGET_CATCHKEY_NOKEY -1 +#define WIDGET_CATCHKEY_WIDTH 110 +#define WIDGET_CATCHKEY_HEIGHT 12 typedef struct widget_catchkey_struct { int w, h; @@ -18,10 +17,10 @@ typedef struct widget_catchkey_struct { } widget_catchkey_t; extern widget_t *catch_key_new(int key, int x, int y, void *event); -extern int catch_key_get(widget_t * p); -extern void catch_key_set(widget_t * p, int key); -extern void catch_key_draw(widget_t * p); -extern void catch_key_event(widget_t * p); -extern void catch_key_destroy(widget_t * p); +extern int catch_key_get(widget_t *p); +extern void catch_key_set(widget_t *p, int key); +extern void catch_key_draw(widget_t *p); +extern void catch_key_event(widget_t *p); +extern void catch_key_destroy(widget_t *p); -#endif +#endif /* WIDGET_CATCHKEY_H */ -- cgit v1.2.3