Mercurial > dwindows
comparison gtk/dw.c @ 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 |
comparison
equal
deleted
inserted
replaced
269:2e936651aef6 | 270:d2a80e648d33 |
---|---|
3424 * handle: Handle to the spinbutton to be set. | 3424 * handle: Handle to the spinbutton to be set. |
3425 * limit: Number of characters the entryfield will take. | 3425 * limit: Number of characters the entryfield will take. |
3426 */ | 3426 */ |
3427 void dw_entryfield_set_limit(HWND handle, ULONG limit) | 3427 void dw_entryfield_set_limit(HWND handle, ULONG limit) |
3428 { | 3428 { |
3429 /* TODO: can this be done after the fact? */ | 3429 int _locked_by_me = FALSE; |
3430 | |
3431 DW_MUTEX_LOCK; | |
3432 gtk_entry_set_max_length(handle, limit); | |
3433 DW_MUTEX_UNLOCK; | |
3430 } | 3434 } |
3431 | 3435 |
3432 /* | 3436 /* |
3433 * Returns the current value of the spinbutton. | 3437 * Returns the current value of the spinbutton. |
3434 * Parameters: | 3438 * Parameters: |