comparison gtk/dw.c @ 503:f3ed8dda02f8

Added dw_filesystem_change_*() and testcase code from Mark in dwtest. Also, added _fix_button_owner() to dw_window_redraw() on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 18 Jan 2004 06:33:25 +0000
parents 8267a3066476
children 7061da3532d7
comparison
equal deleted inserted replaced
502:56ea525c1a24 503:f3ed8dda02f8
5079 { 5079 {
5080 _dw_container_set_item(handle, NULL, column, row, data, NULL); 5080 _dw_container_set_item(handle, NULL, column, row, data, NULL);
5081 } 5081 }
5082 5082
5083 /* 5083 /*
5084 * Changes an existing item in specified row and column to the given data.
5085 * Parameters:
5086 * handle: Handle to the container window (widget).
5087 * column: Zero based column of data being set.
5088 * row: Zero based row of data being set.
5089 * data: Pointer to the data to be added.
5090 */
5091 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data)
5092 {
5093 dw_container_change_item(handle, column + 2, row, data);
5094 }
5095
5096 /*
5097 * Changes an item in specified row and column to the given data.
5098 * Parameters:
5099 * handle: Handle to the container window (widget).
5100 * pointer: Pointer to the allocated memory in dw_container_alloc().
5101 * column: Zero based column of data being set.
5102 * row: Zero based row of data being set.
5103 * data: Pointer to the data to be added.
5104 */
5105 void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon)
5106 {
5107 dw_container_change_item(handle, 0, row, (void *)&icon);
5108 dw_container_change_item(handle, 1, row, (void *)&filename);
5109 }
5110
5111 /*
5084 * Sets an item in specified row and column to the given data. 5112 * Sets an item in specified row and column to the given data.
5085 * Parameters: 5113 * Parameters:
5086 * handle: Handle to the container window (widget). 5114 * handle: Handle to the container window (widget).
5087 * pointer: Pointer to the allocated memory in dw_container_alloc(). 5115 * pointer: Pointer to the allocated memory in dw_container_alloc().
5088 * column: Zero based column of data being set. 5116 * column: Zero based column of data being set.