# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1318106854 0 # Node ID 70dca53cb071b185907bb0880685136194129c77 # Parent 5a016a5a7412a6798fa86111801a76bc69791f4e Updated GTK3 with the behavior change just commited for Mac. Also updated the comments in all the source files to reflect the change. diff -r 5a016a5a7412 -r 70dca53cb071 gtk/dw.c --- a/gtk/dw.c Sat Oct 08 20:43:25 2011 +0000 +++ b/gtk/dw.c Sat Oct 08 20:47:34 2011 +0000 @@ -7121,9 +7121,9 @@ * 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. + * DW_RGB_TRANSPARENT will disable coloring rows. + * DW_CLR_DEFAULT will use the system default alternating row colors. */ void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) { diff -r 5a016a5a7412 -r 70dca53cb071 gtk3/dw.c --- a/gtk3/dw.c Sat Oct 08 20:43:25 2011 +0000 +++ b/gtk3/dw.c Sat Oct 08 20:47:34 2011 +0000 @@ -5974,9 +5974,9 @@ * 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. + * DW_RGB_TRANSPARENT will disable coloring rows. + * DW_CLR_DEFAULT will use the system default alternating row colors. */ void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) { @@ -5988,7 +5988,7 @@ /* Make sure it is the correct tree type */ if(cont && GTK_IS_TREE_VIEW(cont) && g_object_get_data(G_OBJECT(cont), "_dw_tree_type") == GINT_TO_POINTER(_DW_TREE_TYPE_CONTAINER)) { - if(oddcolor == DW_CLR_DEFAULT && evencolor == DW_CLR_DEFAULT) + if(oddcolor == DW_RGB_TRANSPARENT && evencolor == DW_RGB_TRANSPARENT) gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), FALSE); else gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), TRUE); diff -r 5a016a5a7412 -r 70dca53cb071 os2/dw.c --- a/os2/dw.c Sat Oct 08 20:43:25 2011 +0000 +++ b/os2/dw.c Sat Oct 08 20:47:34 2011 +0000 @@ -7699,9 +7699,9 @@ * 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. + * DW_RGB_TRANSPARENT will disable coloring rows. + * DW_CLR_DEFAULT will use the system default alternating row colors. */ void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) { diff -r 5a016a5a7412 -r 70dca53cb071 template/dw.c --- a/template/dw.c Sat Oct 08 20:43:25 2011 +0000 +++ b/template/dw.c Sat Oct 08 20:47:34 2011 +0000 @@ -1851,9 +1851,9 @@ * 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. + * DW_RGB_TRANSPARENT will disable coloring rows. + * DW_CLR_DEFAULT will use the system default alternating row colors. */ void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) { diff -r 5a016a5a7412 -r 70dca53cb071 win/dw.c --- a/win/dw.c Sat Oct 08 20:43:25 2011 +0000 +++ b/win/dw.c Sat Oct 08 20:47:34 2011 +0000 @@ -8024,9 +8024,9 @@ * 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. + * DW_RGB_TRANSPARENT will disable coloring rows. + * DW_CLR_DEFAULT will use the system default alternating row colors. */ void API dw_container_set_row_bg(HWND handle, unsigned long oddcolor, unsigned long evencolor) {