gtk_grid_attach(GTK_GRID(grid),close_b,0,0,1,1);
GtkWidget *step_rb=NULL;
- int i=0;
- while(steps[i]!=0) {
+ for (int i=0; i<STEPS; i++) {
if(i==0) {
step_rb=gtk_radio_button_new_with_label(NULL,step_labels[i]);
} else {
gtk_widget_show(step_rb);
gtk_grid_attach(GTK_GRID(grid),step_rb,i%5,1+(i/5),1,1);
g_signal_connect(step_rb,"toggled",G_CALLBACK(step_select_cb),(gpointer)(long)i);
- i++;
}
gtk_container_add(GTK_CONTAINER(content),grid);