diff options
author | Unia <jthidskes@live.nl> | 2013-04-08 22:10:31 +0200 |
---|---|---|
committer | Unia <jthidskes@live.nl> | 2013-04-08 22:10:31 +0200 |
commit | 3991ee0c7ab71de87a49939b4e20d7a6f5e030b1 (patch) | |
tree | 2ce202e462c212c61a0b5d1154fbc9daddd468a4 | |
parent | 7388a4d70ee63a666dc2376a8d447b568d2af6b8 (diff) |
line moves
-rw-r--r-- | gstopwatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gstopwatch.c b/gstopwatch.c index d079db5..dd35f1b 100644 --- a/gstopwatch.c +++ b/gstopwatch.c @@ -76,9 +76,8 @@ void add_lap (void) { } void on_stopwatch_button_clicked (void) { - gdk_color_parse("#C73333", &color); - if(state == STOPPED) { + gdk_color_parse("#C73333", &color); gtk_widget_modify_fg(GTK_WIDGET(button_stopwatch), GTK_STATE_NORMAL, &color); gtk_button_set_label(GTK_BUTTON(button_stopwatch), "Stop"); gtk_widget_set_sensitive(GTK_WIDGET(button_funcs), TRUE); @@ -86,6 +85,7 @@ void on_stopwatch_button_clicked (void) { g_timer_start(stopwatch); state = STARTED; } else if(state == PAUSED) { + gdk_color_parse("#C73333", &color); gtk_widget_modify_fg(GTK_WIDGET(button_stopwatch), GTK_STATE_NORMAL, &color); gtk_button_set_label(GTK_BUTTON(button_stopwatch), "Stop"); gtk_button_set_label(GTK_BUTTON(button_funcs), "Lap"); |