comparison gtk/dw.c @ 1505:fcdd9e3c735a

Use _dw_msleep() insetad of dw_main_sleep() when pausing to get the frame extents property... it is considerably safer in some situations.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 26 Dec 2011 23:31:24 +0000
parents 79c99c612725
children 308bfa8426db
comparison
equal deleted inserted replaced
1504:c6ab88dcf016 1505:fcdd9e3c735a
10417 * time and hope for a better result. 10417 * time and hope for a better result.
10418 */ 10418 */
10419 while((frame.width == 200 || frame.width == (200 + cx)) && 10419 while((frame.width == 200 || frame.width == (200 + cx)) &&
10420 (frame.height == 200 || frame.height == (200 + cy)) && count < 10) 10420 (frame.height == 200 || frame.height == (200 + cy)) && count < 10)
10421 { 10421 {
10422 dw_main_sleep(1); 10422 _dw_msleep(1);
10423 count++; 10423 count++;
10424 gdk_window_get_frame_extents(handle->window, &frame); 10424 gdk_window_get_frame_extents(handle->window, &frame);
10425 } 10425 }
10426 width = frame.width; 10426 width = frame.width;
10427 height = frame.height; 10427 height = frame.height;