changeset 983:6abf763838c6

Allow checboxes and other "buttons" to have a blank title instead of the default "Button" if an empty string is passed as the title.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 00:09:24 +0000
parents a4425bb24b77
children 57cb9edb8944
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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]])