comparison gtk/dw.c @ 504:7061da3532d7

Fix minor error in new dw_filesystem_change_*() code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 18 Jan 2004 06:41:04 +0000
parents f3ed8dda02f8
children 078a40ba2e41
comparison
equal deleted inserted replaced
503:f3ed8dda02f8 504:7061da3532d7
5088 * row: Zero based row of data being set. 5088 * row: Zero based row of data being set.
5089 * data: Pointer to the data to be added. 5089 * data: Pointer to the data to be added.
5090 */ 5090 */
5091 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data) 5091 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data)
5092 { 5092 {
5093 dw_container_change_item(handle, column + 2, row, data); 5093 dw_filesystem_set_item(handle, NULL, column, row, data);
5094 } 5094 }
5095 5095
5096 /* 5096 /*
5097 * Changes an item in specified row and column to the given data. 5097 * Changes an item in specified row and column to the given data.
5098 * Parameters: 5098 * Parameters:
5102 * row: Zero based row of data being set. 5102 * row: Zero based row of data being set.
5103 * data: Pointer to the data to be added. 5103 * data: Pointer to the data to be added.
5104 */ 5104 */
5105 void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon) 5105 void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon)
5106 { 5106 {
5107 dw_container_change_item(handle, 0, row, (void *)&icon); 5107 dw_filesystem_set_file(handle, NULL, row, filename, icon);
5108 dw_container_change_item(handle, 1, row, (void *)&filename);
5109 } 5108 }
5110 5109
5111 /* 5110 /*
5112 * Sets an item in specified row and column to the given data. 5111 * Sets an item in specified row and column to the given data.
5113 * Parameters: 5112 * Parameters: