aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnia <jthidskes@live.nl>2013-04-08 14:06:06 +0200
committerUnia <jthidskes@live.nl>2013-04-08 14:06:06 +0200
commit919411efcf5933d84339f0e55e793900d205e27e (patch)
tree47f5585f83ec7a076a051314bd9631a4aa344afa
parentef4cc8b8497241d3f7791a6d1def6bfe1366a703 (diff)
lap count bug fixed
-rw-r--r--README.md1
-rw-r--r--gstopwatch.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/README.md b/README.md
index 96d7487..d092f86 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,6 @@ ToDo
* Add about dialog back in?
* Add a timer function too, in GtkNotebook?
* Add split in laps: difference between lap 1 and lap 2
-* Bug: lap stays 1
License
-------
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++;