Mercurial > dwindows
changeset 1211:70dca53cb071
Updated GTK3 with the behavior change just commited for Mac.
Also updated the comments in all the source files to reflect the change.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 08 Oct 2011 20:47:34 +0000 |
parents | 5a016a5a7412 |
children | 5271d5cb27ac |
files | gtk/dw.c gtk3/dw.c os2/dw.c template/dw.c win/dw.c |
diffstat | 5 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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) {
--- 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);
--- 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) {
--- 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) {
--- 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) {