Index: trunk/src_plugins/dialogs/dlg_flag_edit.c =================================================================== --- trunk/src_plugins/dialogs/dlg_flag_edit.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_flag_edit.c (revision 23116) @@ -128,7 +128,7 @@ ctx.wid[ctx.len] = PCB_DAD_CURRENT(dlg); ctx.flag_bit[ctx.len] = pcb_object_flagbits[n].mask; if (PCB_FLAG_TEST(ctx.flag_bit[ctx.len], ctx.obj)) - PCB_DAD_DEFAULT(dlg, 1); + PCB_DAD_DEFAULT_VAL(dlg, 1); ctx.len++; } } Index: trunk/src_plugins/dialogs/dlg_general.c =================================================================== --- trunk/src_plugins/dialogs/dlg_general.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_general.c (revision 23116) @@ -78,13 +78,13 @@ PCB_DAD_COORD(ctx->dlg, ""); ctx->sizes.wwidth = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, PCB_MM_TO_COORD(1), PCB_MAX_COORD); - PCB_DAD_DEFAULT(ctx->dlg, PCB->MaxWidth); + PCB_DAD_DEFAULT_VAL(ctx->dlg, PCB->MaxWidth); PCB_DAD_CHANGE_CB(ctx->dlg, pref_sizes_dlg2brd); PCB_DAD_LABEL(ctx->dlg, "Height="); PCB_DAD_COORD(ctx->dlg, ""); ctx->sizes.wheight = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, PCB_MM_TO_COORD(1), PCB_MAX_COORD); - PCB_DAD_DEFAULT(ctx->dlg, PCB->MaxHeight); + PCB_DAD_DEFAULT_VAL(ctx->dlg, PCB->MaxHeight); PCB_DAD_CHANGE_CB(ctx->dlg, pref_sizes_dlg2brd); PCB_DAD_END(ctx->dlg); Index: trunk/src_plugins/dialogs/dlg_lib_pstk.c =================================================================== --- trunk/src_plugins/dialogs/dlg_lib_pstk.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_lib_pstk.c (revision 23116) @@ -564,7 +564,7 @@ PCB_DAD_COORD(ctx->dlg, ""); ctx->wgrid = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, PCB_MM_TO_COORD(0.01), PCB_MM_TO_COORD(10)); - PCB_DAD_DEFAULT(ctx->dlg, (pcb_coord_t)PCB_MM_TO_COORD(1)); + PCB_DAD_DEFAULT_VAL(ctx->dlg, (pcb_coord_t)PCB_MM_TO_COORD(1)); PCB_DAD_CHANGE_CB(ctx->dlg, pstklib_update_prv); PCB_DAD_LABEL(ctx->dlg, ""); @@ -578,11 +578,11 @@ PCB_DAD_LABEL(ctx->dlg, pcb_proto_layers[n].name); PCB_DAD_BEGIN_HBOX(ctx->dlg); PCB_DAD_BOOL(ctx->dlg, ""); - PCB_DAD_DEFAULT(ctx->dlg, 1); + PCB_DAD_DEFAULT_VAL(ctx->dlg, 1); PCB_DAD_CHANGE_CB(ctx->dlg, pstklib_update_prv); ctx->wlayerv[n] = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_BOOL(ctx->dlg, ""); - PCB_DAD_DEFAULT(ctx->dlg, (pcb_proto_layers[n].mask == (PCB_LYT_TOP | PCB_LYT_COPPER))); + PCB_DAD_DEFAULT_VAL(ctx->dlg, (pcb_proto_layers[n].mask == (PCB_LYT_TOP | PCB_LYT_COPPER))); PCB_DAD_CHANGE_CB(ctx->dlg, pstklib_update_layerc); ctx->wlayerc[n] = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_END(ctx->dlg); Index: trunk/src_plugins/dialogs/dlg_pref.c =================================================================== --- trunk/src_plugins/dialogs/dlg_pref.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_pref.c (revision 23116) @@ -143,7 +143,7 @@ PCB_DAD_COORD(ctx->dlg, ""); item->wid = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, 0, PCB_MAX_COORD); - PCB_DAD_DEFAULT(ctx->dlg, cn->val.coord[0]); + PCB_DAD_DEFAULT_VAL(ctx->dlg, cn->val.coord[0]); PCB_DAD_HELP(ctx->dlg, cn->description); PCB_DAD_CHANGE_CB(ctx->dlg, change_cb); break; @@ -150,7 +150,7 @@ case CFN_BOOLEAN: PCB_DAD_BOOL(ctx->dlg, ""); item->wid = PCB_DAD_CURRENT(ctx->dlg); - PCB_DAD_DEFAULT(ctx->dlg, cn->val.integer[0]); + PCB_DAD_DEFAULT_VAL(ctx->dlg, cn->val.integer[0]); PCB_DAD_HELP(ctx->dlg, cn->description); PCB_DAD_CHANGE_CB(ctx->dlg, change_cb); break; @@ -158,7 +158,7 @@ PCB_DAD_INTEGER(ctx->dlg, ""); item->wid = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, 0, INT_MAX); - PCB_DAD_DEFAULT(ctx->dlg, cn->val.integer[0]); + PCB_DAD_DEFAULT_VAL(ctx->dlg, cn->val.integer[0]); PCB_DAD_HELP(ctx->dlg, cn->description); PCB_DAD_CHANGE_CB(ctx->dlg, change_cb); break; Index: trunk/src_plugins/dialogs/dlg_pref_sizes.c =================================================================== --- trunk/src_plugins/dialogs/dlg_pref_sizes.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_pref_sizes.c (revision 23116) @@ -99,13 +99,13 @@ PCB_DAD_COORD(ctx->dlg, ""); ctx->sizes.wwidth = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, PCB_MM_TO_COORD(1), PCB_MAX_COORD); - PCB_DAD_DEFAULT(ctx->dlg, PCB->MaxWidth); + PCB_DAD_DEFAULT_VAL(ctx->dlg, PCB->MaxWidth); PCB_DAD_CHANGE_CB(ctx->dlg, pref_sizes_dlg2brd); PCB_DAD_LABEL(ctx->dlg, "Height="); PCB_DAD_COORD(ctx->dlg, ""); ctx->sizes.wheight = PCB_DAD_CURRENT(ctx->dlg); PCB_DAD_MINMAX(ctx->dlg, PCB_MM_TO_COORD(1), PCB_MAX_COORD); - PCB_DAD_DEFAULT(ctx->dlg, PCB->MaxHeight); + PCB_DAD_DEFAULT_VAL(ctx->dlg, PCB->MaxHeight); PCB_DAD_CHANGE_CB(ctx->dlg, pref_sizes_dlg2brd); PCB_DAD_END(ctx->dlg); Index: trunk/src_plugins/dialogs/dlg_test.c =================================================================== --- trunk/src_plugins/dialogs/dlg_test.c (revision 23115) +++ trunk/src_plugins/dialogs/dlg_test.c (revision 23116) @@ -119,7 +119,7 @@ PCB_DAD_INTEGER(ctx.dlg, "text2e"); PCB_DAD_MINVAL(ctx.dlg, 1); PCB_DAD_MAXVAL(ctx.dlg, 10); - PCB_DAD_DEFAULT(ctx.dlg, 3); + PCB_DAD_DEFAULT_VAL(ctx.dlg, 3); PCB_DAD_CHANGE_CB(ctx.dlg, pcb_act_attr_chg); attr_idx2 = PCB_DAD_CURRENT(ctx.dlg); PCB_DAD_BUTTON(ctx.dlg, "update!"); Index: trunk/src_plugins/export_openems/mesh.c =================================================================== --- trunk/src_plugins/export_openems/mesh.c (revision 23115) +++ trunk/src_plugins/export_openems/mesh.c (revision 23116) @@ -1194,7 +1194,7 @@ PCB_DAD_INTEGER(ia.dlg, ""); ia.pml = PCB_DAD_CURRENT(ia.dlg); PCB_DAD_MINMAX(ia.dlg, 0, 32); - PCB_DAD_DEFAULT(ia.dlg, 8); + PCB_DAD_DEFAULT_VAL(ia.dlg, 8); PCB_DAD_END(ia.dlg); PCB_DAD_END(ia.dlg); Index: trunk/src_plugins/shape/shape_dialog.c =================================================================== --- trunk/src_plugins/shape/shape_dialog.c (revision 23115) +++ trunk/src_plugins/shape/shape_dialog.c (revision 23116) @@ -161,7 +161,7 @@ shp->corners = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINVAL(shp->dlg, 3); PCB_DAD_MAXVAL(shp->dlg, 64); - PCB_DAD_DEFAULT(shp->dlg, 8); + PCB_DAD_DEFAULT_VAL(shp->dlg, 8); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_regpoly); PCB_DAD_END(shp->dlg); @@ -170,7 +170,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->prx = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_regpoly); PCB_DAD_LABEL(shp->dlg, "x (horizontal)"); PCB_DAD_END(shp->dlg); @@ -180,7 +180,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->pry = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_regpoly); PCB_DAD_LABEL(shp->dlg, "y (vertical)"); PCB_DAD_END(shp->dlg); @@ -234,7 +234,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->w = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_roundrect); PCB_DAD_LABEL(shp->dlg, "width (horizontal)"); PCB_DAD_END(shp->dlg); @@ -244,7 +244,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->h = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_roundrect); PCB_DAD_LABEL(shp->dlg, "height (vertical)"); PCB_DAD_END(shp->dlg); @@ -262,7 +262,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->rx = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_roundrect); PCB_DAD_LABEL(shp->dlg, "x (horizontal)"); PCB_DAD_END(shp->dlg); @@ -272,7 +272,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->ry = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_roundrect); PCB_DAD_LABEL(shp->dlg, "y (vertical)"); PCB_DAD_END(shp->dlg); @@ -291,7 +291,7 @@ shp->rres = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINVAL(shp->dlg, 0.1); PCB_DAD_MAXVAL(shp->dlg, 5); - PCB_DAD_DEFAULT(shp->dlg, 1); + PCB_DAD_DEFAULT_VAL(shp->dlg, 1); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_roundrect); PCB_DAD_END(shp->dlg); @@ -351,7 +351,7 @@ PCB_DAD_COORD(shp->dlg, ""); shp->dia = PCB_DAD_CURRENT(shp->dlg); PCB_DAD_MINMAX(shp->dlg, 0, maxr); - PCB_DAD_DEFAULT(shp->dlg, mm2); + PCB_DAD_DEFAULT_VAL(shp->dlg, mm2); PCB_DAD_CHANGE_CB(shp->dlg, shp_chg_circle); PCB_DAD_END(shp->dlg);