diff options
author | corvid <corvid@lavabit.com> | 2012-11-25 01:54:16 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-11-25 01:54:16 +0000 |
commit | 975fc68c4d5bd9ce6ca2e536f4c8a3c6d59962b9 (patch) | |
tree | 5e1893c5946abc0d71265b60bbeab78b7a3a392e /dw/fltkui.cc | |
parent | fae8ba37e74976b59ab41932d3b2c2165c688d91 (diff) |
dw entry resource, mentions of maxLength should be size
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r-- | dw/fltkui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index d2fae962..e8416bb3 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -536,11 +536,11 @@ Fl_Widget *FltkComplexButtonResource::createNewWidget (core::Allocation // ---------------------------------------------------------------------- -FltkEntryResource::FltkEntryResource (FltkPlatform *platform, int maxLength, +FltkEntryResource::FltkEntryResource (FltkPlatform *platform, int size, bool password, const char *label): FltkSpecificResource <dw::core::ui::EntryResource> (platform) { - this->maxLength = maxLength; + this->size = size; this->password = password; this->label = label ? strdup(label) : NULL; this->label_w = 0; @@ -615,7 +615,7 @@ void FltkEntryResource::sizeRequest (core::Requisition *requisition) // 1.3.0 (STR #2688). requisition->width = (int)fl_width ("n") - * (maxLength == UNLIMITED_MAX_LENGTH ? 10 : maxLength) + * (size == UNLIMITED_SIZE ? 10 : size) + label_w + (2 * RELIEF_X_THICKNESS); requisition->ascent = font->ascent + RELIEF_Y_THICKNESS; requisition->descent = font->descent + RELIEF_Y_THICKNESS; |