From 919411efcf5933d84339f0e55e793900d205e27e Mon Sep 17 00:00:00 2001 From: Unia Date: Mon, 8 Apr 2013 14:06:06 +0200 Subject: lap count bug fixed --- gstopwatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gstopwatch.c') diff --git a/gstopwatch.c b/gstopwatch.c index 5e6f717..346b738 100644 --- a/gstopwatch.c +++ b/gstopwatch.c @@ -14,7 +14,7 @@ enum { gchar output[100]; GTimer *timer; -gint state = STOPPED; +gint state = STOPPED, lap = 0; GtkWidget *timer_display, *button_timer, *button_funcs, *tree; GtkListStore *liststore; GtkTreeSelection *selection; @@ -44,7 +44,6 @@ gboolean update_progress_bar (void) { } void add_lap (void) { - gint lap = 0; GtkTreePath *path; lap++; -- cgit v1.2.3