changeset 1678:896f377a47c7

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 27 Apr 2012 15:49:16 +0000
parents 60f8ae42a0be
children e19b93a8229b
files gtk/dw.c gtk3/dw.c mac/dw.m os2/dw.c os2/dw.lnk readme.txt win/dw-mingw.def
diffstat 7 files changed, 20 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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.
--- 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.
--- 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.
--- 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
--- 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.
--- 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