comparison gtk/dw.c @ 672:388f2a48aaae

Missed one function to typedef. Fixed errors in the test program and switched to using the new HICN type after making sure the code built on the other platforms unmodified.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 27 Feb 2011 19:25:21 +0000
parents c60a4f6cfae8
children f25ed69adb47
comparison
equal deleted inserted replaced
671:c60a4f6cfae8 672:388f2a48aaae
4324 * Sets the icon used for a given window. 4324 * Sets the icon used for a given window.
4325 * Parameters: 4325 * Parameters:
4326 * handle: Handle to the window. 4326 * handle: Handle to the window.
4327 * id: An ID to be used to specify the icon. 4327 * id: An ID to be used to specify the icon.
4328 */ 4328 */
4329 void dw_window_set_icon(HWND handle, unsigned long id) 4329 void dw_window_set_icon(HWND handle, HICN icon)
4330 { 4330 {
4331 GdkBitmap *bitmap = NULL; 4331 GdkBitmap *bitmap = NULL;
4332 GdkPixmap *icon_pixmap; 4332 GdkPixmap *icon_pixmap;
4333 int _locked_by_me = FALSE; 4333 int _locked_by_me = FALSE;
4334 4334
4335 DW_MUTEX_LOCK; 4335 DW_MUTEX_LOCK;
4336 icon_pixmap = _find_pixmap(&bitmap, id, handle, NULL, NULL); 4336 icon_pixmap = _find_pixmap(&bitmap, icon, handle, NULL, NULL);
4337 4337
4338 if(handle->window && icon_pixmap) 4338 if(handle->window && icon_pixmap)
4339 gdk_window_set_icon(handle->window, NULL, icon_pixmap, bitmap); 4339 gdk_window_set_icon(handle->window, NULL, icon_pixmap, bitmap);
4340 4340
4341 DW_MUTEX_UNLOCK; 4341 DW_MUTEX_UNLOCK;