chiark / gitweb /
Game configuration box for Windows, by constructing the dialog box
[sgt-puzzles.git] / gtk.c
diff --git a/gtk.c b/gtk.c
index d443f5f76cdc0882416d799079906d53ab805147..5e51028e2614aac67032e3785087b2305c5f4340 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -495,11 +495,11 @@ static int get_config(frontend *fe)
                      table, FALSE, FALSE, 0);
     gtk_widget_show(table);
 
-    for (i = fe->cfg; i->type != ENDCFG; i++) {
+    for (i = fe->cfg; i->type != C_END; i++) {
        gtk_table_resize(GTK_TABLE(table), y+1, 2);
 
        switch (i->type) {
-         case STRING:
+         case C_STRING:
            /*
             * Edit box with a label beside it.
             */
@@ -524,7 +524,7 @@ static int get_config(frontend *fe)
 
            break;
 
-         case BOOLEAN:
+         case C_BOOLEAN:
            /*
             * Simple checkbox.
             */
@@ -539,7 +539,7 @@ static int get_config(frontend *fe)
            gtk_widget_show(w);
            break;
 
-         case CHOICES:
+         case C_CHOICES:
            /*
             * Drop-down list (GtkOptionMenu).
             */
@@ -613,9 +613,7 @@ static int get_config(frontend *fe)
     gtk_widget_show(fe->cfgbox);
     gtk_main();
 
-    /*
-     * FIXME: free fe->cfg
-     */
+    free_cfg(fe->cfg);
 
     return fe->cfgret;
 }