# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1046893135 0 # Node ID d2a80e648d339ee2216a8914d4b2480256705be9 # Parent 2e936651aef6e78e0d002cdaed7bc4f580d4cbb7 Implemented dw_entryfield_set_limit() on GTK. diff -r 2e936651aef6 -r d2a80e648d33 gtk/dw.c --- 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; } /*