changeset 804:5b4a831af8fa

Fix for dw_combobox_new() not setting the default text in the entryfield.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 23 Mar 2011 20:59:38 +0000
parents 8555ac1bcbcd
children 1a0bbb2aa9dd
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Mar 23 20:45:34 2011 +0000
+++ b/mac/dw.m	Wed Mar 23 20:59:38 2011 +0000
@@ -3600,6 +3600,7 @@
 HWND API dw_combobox_new(char *text, ULONG cid)
 {
     DWComboBox *combo = [[DWComboBox alloc] init];
+    [combo setStringValue:[NSString stringWithUTF8String:text]];
     [combo setDelegate:combo];
     [combo setTag:cid];
     return combo;