From 44daf03024fbf7cbffa10349044786f6ab784821 Mon Sep 17 00:00:00 2001 From: "Tomas Chvatal (scarabeus)" Date: Wed, 22 Oct 2008 22:51:24 +0200 Subject: Revert "X" This reverts commit e12753d2ec9db83ec08bb9db63902a82fb245cdd. --- src/widget/widget.c~ | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/widget/widget.c~ (limited to 'src/widget/widget.c~') diff --git a/src/widget/widget.c~ b/src/widget/widget.c~ deleted file mode 100644 index 2d9ee19..0000000 --- a/src/widget/widget.c~ +++ /dev/null @@ -1,52 +0,0 @@ - -#include -#include - -#include "main.h" - -#include "widget.h" -#include "widget_label.h" - -widget_t* newWidget(int type, int x, int y, int w, int h, void *private_data) -{ - widget_t *new; - - new = malloc( sizeof(widget_t) ); - new->type = type; - new->x = x; - new->y = y; - new->w = w; - new->h = h; - new->private_data = private_data; - - return new; -} - -void widgetSetLocation(widget_t *p, int x, int y) -{ - p->x = x; - p->y = y; -} - -void widgetGetLocation(widget_t *p, int *x, int *y) -{ - if( x != NULL )*x = p->x; - if( y != NULL )*y = p->y; -} - -void widgetSetSize(widget_t *p, int w, int h) -{ - p->w = w; - p->h = h; -} - -void widgetGetSize(widget_t *p, int *w, int *h) -{ - if( w != NULL )*w = p->w; - if( h != NULL )*h = p->h; -} - -void destroyWidget(widget_t *p) -{ - free(p); -} -- cgit v1.2.3