fixed the count-bug in training-camp

This commit is contained in:
mrsmola 2007-02-12 16:07:44 +00:00
parent 15af354200
commit b4af5ec745
1 changed files with 9 additions and 0 deletions

View File

@ -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);
}