# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1318101609 0 # Node ID 53547c9c99a22c31c2d37ff84b75a0ce75946514 # Parent 423da07c8f05d10f4e36255d79dc15481008fe58 Added dw_container_set_row_bg() stubs on the remaining platforms. It is possible but complicated to implement on Windows... will implement when I find time. Researching GTK1/2 support since they use GtkCList instead of GtkTreeView like GTK3. OS/2 I believe this is impossible to implement. diff -r 423da07c8f05 -r 53547c9c99a2 dw.def --- a/dw.def Sat Oct 08 19:01:53 2011 +0000 +++ b/dw.def Sat Oct 08 19:20:09 2011 +0000 @@ -145,6 +145,7 @@ dw_container_change_item @236 dw_container_get_column_type @237 dw_container_change_row_title @238 + dw_container_set_row_bg @239 dw_filesystem_setup @240 dw_filesystem_set_item @241 diff -r 423da07c8f05 -r 53547c9c99a2 dww.def --- a/dww.def Sat Oct 08 19:01:53 2011 +0000 +++ b/dww.def Sat Oct 08 19:20:09 2011 +0000 @@ -142,6 +142,7 @@ dw_container_change_item @236 dw_container_get_column_type @237 dw_container_change_row_title @238 + dw_container_set_row_bg @239 dw_filesystem_setup @240 dw_filesystem_set_item @241 diff -r 423da07c8f05 -r 53547c9c99a2 gtk/dw.c --- a/gtk/dw.c Sat Oct 08 19:01:53 2011 +0000 +++ b/gtk/dw.c Sat Oct 08 19:20:09 2011 +0000 @@ -7117,6 +7117,19 @@ } /* + * Sets the alternating row colors for container window (widget) handle. + * Parameters: + * handle: The window (widget) handle. + * oddcolor: Odd row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring odd rows. + * evencolor: Even row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring even rows. + */ +void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) +{ +} + +/* * Sets the width of a column in the container. * Parameters: * handle: Handle to window (widget) of container. diff -r 423da07c8f05 -r 53547c9c99a2 os2/dw.c --- a/os2/dw.c Sat Oct 08 19:01:53 2011 +0000 +++ b/os2/dw.c Sat Oct 08 19:20:09 2011 +0000 @@ -7695,6 +7695,20 @@ } /* + * Sets the alternating row colors for container window (widget) handle. + * Parameters: + * handle: The window (widget) handle. + * oddcolor: Odd row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring odd rows. + * evencolor: Even row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring even rows. + */ +void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) +{ + /* Don't think this is possible on OS/2 */ +} + +/* * Sets the width of a column in the container. * Parameters: * handle: Handle to window (widget) of container. diff -r 423da07c8f05 -r 53547c9c99a2 template/dw.c --- a/template/dw.c Sat Oct 08 19:01:53 2011 +0000 +++ b/template/dw.c Sat Oct 08 19:20:09 2011 +0000 @@ -1847,6 +1847,19 @@ } /* + * Sets the alternating row colors for container window (widget) handle. + * Parameters: + * handle: The window (widget) handle. + * oddcolor: Odd row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring odd rows. + * evencolor: Even row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring even rows. + */ +void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) +{ +} + +/* * Sets the width of a column in the container. * Parameters: * handle: Handle to window (widget) of container. diff -r 423da07c8f05 -r 53547c9c99a2 win/dw.c --- a/win/dw.c Sat Oct 08 19:01:53 2011 +0000 +++ b/win/dw.c Sat Oct 08 19:20:09 2011 +0000 @@ -8020,6 +8020,19 @@ } /* + * Sets the alternating row colors for container window (widget) handle. + * Parameters: + * handle: The window (widget) handle. + * oddcolor: Odd row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring odd rows. + * evencolor: Even row background color in DW_RGB format or a default color index. + * DW_CLR_DEFAULT will disable coloring even rows. + */ +void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) +{ +} + +/* * Sets the width of a column in the container. * Parameters: * handle: Handle to window (widget) of container.