From b4af5ec7453f73ca64a951b0a4e70b2be40ee6c0 Mon Sep 17 00:00:00 2001 From: mrsmola Date: Mon, 12 Feb 2007 16:07:44 +0000 Subject: [PATCH] fixed the count-bug in training-camp --- src/window.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/window.c b/src/window.c index 5e6a4f12..9603e6f8 100644 --- a/src/window.c +++ b/src/window.c @@ -966,5 +966,14 @@ window_show_training_camp(void) gtk_scale_set_digits (GTK_SCALE(hs_recreation), 0); gtk_scale_set_digits (GTK_SCALE(hs_training), 0); gtk_scale_set_digits (GTK_SCALE(hs_camp_points), 0); + gtk_widget_set_sensitive (GTK_WIDGET(hs_recreation), FALSE); + gtk_widget_set_sensitive (GTK_WIDGET(hs_training), FALSE); gtk_widget_set_sensitive (GTK_WIDGET(hs_camp_points), FALSE); + + GdkColor color; + gtk_widget_modify_fg(GTK_WIDGET(hs_recreation), GTK_STATE_INSENSITIVE , NULL); + gtk_widget_modify_bg(GTK_WIDGET(hs_recreation), GTK_STATE_NORMAL, NULL); + gdk_color_parse("black", &color); + gtk_widget_modify_fg(GTK_WIDGET(hs_recreation), GTK_STATE_INSENSITIVE , &color); + gtk_widget_modify_bg(GTK_WIDGET(hs_recreation), GTK_STATE_NORMAL, &color); }