comparison win/dw.c @ 1561:46e34bd92336

Implemented guessing size of MLE on GTK... not as accurate as the other platforms... but until the bugs are fixed in GTK this is the best we can do. Also make dw_window_get_preferred_size() return our guesses. Added a piece of safety code on Windows... just in case.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 17 Jan 2012 18:18:00 +0000
parents 4a9c574d5c17
children 035bc006afbe
comparison
equal deleted inserted replaced
1560:ee47bda26916 1561:46e34bd92336
4526 4526
4527 dw_mle_get_size(handle, &bytes, NULL); 4527 dw_mle_get_size(handle, &bytes, NULL);
4528 4528
4529 ptr = buf = _alloca(bytes + 2); 4529 ptr = buf = _alloca(bytes + 2);
4530 dw_mle_export(handle, buf, 0, (int)bytes); 4530 dw_mle_export(handle, buf, 0, (int)bytes);
4531 buf[bytes] = 0;
4531 strcat(buf, "\n"); 4532 strcat(buf, "\n");
4532 4533
4533 /* MLE */ 4534 /* MLE */
4534 while(ptr = strstr(buf, "\n")) 4535 while(ptr = strstr(buf, "\n"))
4535 { 4536 {