# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1335541756 0 # Node ID 896f377a47c71d086907dae7d58415541175d0c1 # Parent 60f8ae42a0be4b27fd259923020f8d2dce494def Added exports for building with MinGW on Windows and Watcom on OS/2. Updated some errorneous text in the source comments. Updated readme with information about the new functions. diff -r 60f8ae42a0be -r 896f377a47c7 gtk/dw.c --- a/gtk/dw.c Fri Apr 27 15:33:05 2012 +0000 +++ b/gtk/dw.c Fri Apr 27 15:49:16 2012 +0000 @@ -10500,7 +10500,7 @@ * Pack windows (widgets) into a box at an arbitrary location. * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * index: 0 based index of packed items. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. @@ -10517,7 +10517,7 @@ * Pack windows (widgets) into a box from the start (or top). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. @@ -10536,7 +10536,7 @@ * Pack windows (widgets) into a box from the end (or bottom). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. diff -r 60f8ae42a0be -r 896f377a47c7 gtk3/dw.c --- a/gtk3/dw.c Fri Apr 27 15:33:05 2012 +0000 +++ b/gtk3/dw.c Fri Apr 27 15:49:16 2012 +0000 @@ -8768,7 +8768,7 @@ * Pack windows (widgets) into a box at an arbitrary location. * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * index: 0 based index of packed items. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. @@ -8785,7 +8785,7 @@ * Pack windows (widgets) into a box from the start (or top). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. @@ -8804,7 +8804,7 @@ * Pack windows (widgets) into a box from the end (or bottom). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. diff -r 60f8ae42a0be -r 896f377a47c7 mac/dw.m --- a/mac/dw.m Fri Apr 27 15:33:05 2012 +0000 +++ b/mac/dw.m Fri Apr 27 15:49:16 2012 +0000 @@ -4038,7 +4038,7 @@ * Pack windows (widgets) into a box at an arbitrary location. * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * index: 0 based index of packed items. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. @@ -4055,7 +4055,7 @@ * Pack windows (widgets) into a box from the start (or top). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. @@ -4074,7 +4074,7 @@ * Pack windows (widgets) into a box from the end (or bottom). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. diff -r 60f8ae42a0be -r 896f377a47c7 os2/dw.c --- a/os2/dw.c Fri Apr 27 15:33:05 2012 +0000 +++ b/os2/dw.c Fri Apr 27 15:49:16 2012 +0000 @@ -7302,7 +7302,7 @@ * Pack windows (widgets) into a box at an arbitrary location. * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * index: 0 based index of packed items. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. @@ -7319,7 +7319,7 @@ * Pack windows (widgets) into a box from the start (or top). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. @@ -7338,7 +7338,7 @@ * Pack windows (widgets) into a box from the end (or bottom). * Parameters: * box: Window handle of the box to be packed into. - * item: Window handle of the item to be back. + * item: Window handle of the item to pack. * width: Width in pixels of the item or -1 to be self determined. * height: Height in pixels of the item or -1 to be self determined. * hsize: TRUE if the window (widget) should expand horizontally to fill space given. diff -r 60f8ae42a0be -r 896f377a47c7 os2/dw.lnk --- a/os2/dw.lnk Fri Apr 27 15:33:05 2012 +0000 +++ b/os2/dw.lnk Fri Apr 27 15:49:16 2012 +0000 @@ -28,6 +28,9 @@ export dw_mdi_new.46 +export dw_box_remove.47 +export dw_box_remove_at_index.48 + export dw_window_new.50 export dw_window_show.51 export dw_window_hide.52 diff -r 60f8ae42a0be -r 896f377a47c7 readme.txt --- a/readme.txt Fri Apr 27 15:33:05 2012 +0000 +++ b/readme.txt Fri Apr 27 15:49:16 2012 +0000 @@ -30,6 +30,8 @@ Added codepage 1208 (UTF-8) as the default codepage on OS/2. Added support for Control-Click on Mac for button press events. Added DW_POINTER() macro for casting parameters to (void *). +Added dw_box_remove() and dw_box_remove_at_index() for removing items + from boxes without destroying them. Also allows removal of padding. Fixed dwindows-config --version not returning the version at all. Fixed value changed events not working for spinbuttons on OS/2 and Windows. Fixed issues drawing arcs on GTK2, GTK3 and Mac. diff -r 60f8ae42a0be -r 896f377a47c7 win/dw-mingw.def --- a/win/dw-mingw.def Fri Apr 27 15:33:05 2012 +0000 +++ b/win/dw-mingw.def Fri Apr 27 15:49:16 2012 +0000 @@ -32,6 +32,9 @@ dw_mdi_new @46 + dw_box_remove @47 + dw_box_remove_at_index @48 + dw_window_new @50 dw_window_show @51 dw_window_hide @52