diff options
Diffstat (limited to 'generic/tkZinc.c')
-rw-r--r-- | generic/tkZinc.c | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/generic/tkZinc.c b/generic/tkZinc.c index 696cb28..bdf14d2 100644 --- a/generic/tkZinc.c +++ b/generic/tkZinc.c @@ -1978,8 +1978,8 @@ ZnItemWithTagOrId(WidgetInfo *wi, * * Perform layouts on items. It can position items horizontally, * vertically, along a path or with respect to a reference item. - * It can also align on a grid and resize items to a common - * reference. + * It can also align on a grid, evenly space items and resize + * items to a common reference. * *---------------------------------------------------------------------- */ @@ -1991,16 +1991,14 @@ LayoutItems(WidgetInfo *wi, int index, result; Item item; static CONST char *layout_cmd_strings[] = { - "bbalign", "valign", "halign", "align", - "position", "grid", "size", NULL + "align", "grid", "position", "scale", "space", NULL }; enum layout_cmds { - ZN_L_BBALIGN, ZN_L_VALIGN, ZN_L_HALIGN, ZN_L_ALIGN, - ZN_L_POSITION, ZN_L_GRID, ZN_L_SIZE + ZN_L_ALIGN, ZN_L_GRID, ZN_L_POSITION, ZN_L_SCALE, ZN_L_SPACE }; if (Tcl_GetIndexFromObj(wi->interp, args[0], layout_cmd_strings, - "align command", 0, &index) != ZN_OK) { + "layout command", 0, &index) != ZN_OK) { return ZN_ERROR; } switch((enum layout_cmds) index) { @@ -2010,19 +2008,9 @@ LayoutItems(WidgetInfo *wi, case ZN_L_ALIGN: break; /* - * halign - */ - case ZN_L_HALIGN: - break; - /* - * valign - */ - case ZN_L_VALIGN: - break; - /* - * bbalign + * grid */ - case ZN_L_BBALIGN: + case ZN_L_GRID: break; /* * position @@ -2030,14 +2018,14 @@ LayoutItems(WidgetInfo *wi, case ZN_L_POSITION: break; /* - * grid + * scale */ - case ZN_L_GRID: + case ZN_L_SCALE: break; /* - * size + * space */ - case ZN_L_SIZE: + case ZN_L_SPACE: break; } |