Mercurial > dwindows
comparison mac/dw.m @ 1654:3d4066aab4e0
Fixed windows not automatically redrawing when removing items from a layout
on OS/2, Mac and Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 09 Apr 2012 21:06:50 +0000 |
parents | 202b1affc706 |
children | 4ec0bce77f70 |
comparison
equal
deleted
inserted
replaced
1653:a7a24a3b8899 | 1654:3d4066aab4e0 |
---|---|
8494 if([parent isKindOfClass:[DWBox class]] || [parent isKindOfClass:[DWGroupBox class]]) | 8494 if([parent isKindOfClass:[DWBox class]] || [parent isKindOfClass:[DWGroupBox class]]) |
8495 { | 8495 { |
8496 Box *thisbox = [parent box]; | 8496 Box *thisbox = [parent box]; |
8497 int z, index = -1; | 8497 int z, index = -1; |
8498 Item *tmpitem, *thisitem = thisbox->items; | 8498 Item *tmpitem, *thisitem = thisbox->items; |
8499 id window = [object window]; | |
8499 | 8500 |
8500 for(z=0;z<thisbox->count;z++) | 8501 for(z=0;z<thisbox->count;z++) |
8501 { | 8502 { |
8502 if(thisitem[z].hwnd == object) | 8503 if(thisitem[z].hwnd == object) |
8503 index = z; | 8504 index = z; |
8525 } | 8526 } |
8526 | 8527 |
8527 thisbox->items = tmpitem; | 8528 thisbox->items = tmpitem; |
8528 free(thisitem); | 8529 free(thisitem); |
8529 thisbox->count--; | 8530 thisbox->count--; |
8531 /* Queue a redraw on the top-level window */ | |
8532 _dw_redraw(window, TRUE); | |
8530 } | 8533 } |
8531 } | 8534 } |
8532 DW_MUTEX_UNLOCK; | 8535 DW_MUTEX_UNLOCK; |
8533 DW_LOCAL_POOL_OUT; | 8536 DW_LOCAL_POOL_OUT; |
8534 return 0; | 8537 return 0; |