# HG changeset patch # User mhessling@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1304726964 0 # Node ID 6abf763838c6924d542db0322e39150d66ea4fa7 # Parent a4425bb24b77bf601fa02ad3b05a1fe843864847 Allow checboxes and other "buttons" to have a blank title instead of the default "Button" if an empty string is passed as the title. diff -r a4425bb24b77 -r 6abf763838c6 mac/dw.m --- a/mac/dw.m Fri May 06 07:54:58 2011 +0000 +++ b/mac/dw.m Sat May 07 00:09:24 2011 +0000 @@ -3320,7 +3320,7 @@ HWND _button_new(char *text, ULONG cid) { DWButton *button = [[DWButton alloc] init]; - if(text && *text) + if(text) { [button setTitle:[ NSString stringWithUTF8String:text ]]; } @@ -7254,8 +7254,8 @@ else if([object isKindOfClass:[DWBox class]] || [object isKindOfClass:[NSControl class]]) { DWBox *parent = (DWBox *)[object superview]; - - /* Some controls are embedded in scrollviews... + + /* Some controls are embedded in scrollviews... * so get the parent of the scrollview in that case. */ if([object isKindOfClass:[NSTableView class]] && [parent isMemberOfClass:[NSClipView class]])