summaryrefslogtreecommitdiff
path: root/src/widget/widget_button.c
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.debian>2009-03-26 15:04:00 +0100
committerDusan Durech <dusan@debian.debian>2009-03-26 15:04:00 +0100
commite5e0724740215565404dba837f8c3072f9fe7413 (patch)
tree39d80e50e12a9fffe47834cd375212017b22025b /src/widget/widget_button.c
parentdf1f2b7cccb241db5500453aa65d11896f54ce6d (diff)
fix warnings...
Diffstat (limited to 'src/widget/widget_button.c')
-rw-r--r--src/widget/widget_button.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/widget_button.c b/src/widget/widget_button.c
index c2afcad..ca1573a 100644
--- a/src/widget/widget_button.c
+++ b/src/widget/widget_button.c
@@ -61,7 +61,7 @@ void drawWidgetButton(widget_t * widget)
void eventWidgetButton(widget_t * widget)
{
widget_button_t *p;
- static int time = 0;
+ static int my_time = 0;
int x, y;
assert(widget != NULL);
@@ -69,8 +69,8 @@ void eventWidgetButton(widget_t * widget)
p = (widget_button_t *) widget->private_data;
- if (time > 0) {
- time--;
+ if (my_time > 0) {
+ my_time--;
return;
}
@@ -79,7 +79,7 @@ void eventWidgetButton(widget_t * widget)
if (x >= widget->x && x <= widget->x + WIDGET_BUTTON_WIDTH &&
y >= widget->y && y <= widget->y + WIDGET_BUTTON_HEIGHT &&
isMouseClicked()) {
- time = WIDGET_BUTTON_TIME;
+ my_time = WIDGET_BUTTON_TIME;
DEBUG_MSG(_("Event caught\n"));