changeset 270:d2a80e648d33

Implemented dw_entryfield_set_limit() on GTK.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 05 Mar 2003 19:38:55 +0000
parents 2e936651aef6
children 38d8908c4438
files gtk/dw.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Wed Mar 05 19:29:44 2003 +0000
+++ b/gtk/dw.c	Wed Mar 05 19:38:55 2003 +0000
@@ -3426,7 +3426,11 @@
  */
 void dw_entryfield_set_limit(HWND handle, ULONG limit)
 {
-	/* TODO: can this be done after the fact? */
+	int _locked_by_me = FALSE;
+
+	DW_MUTEX_LOCK;
+	gtk_entry_set_max_length(handle, limit);
+	DW_MUTEX_UNLOCK;
 }
 
 /*