diff options
author | corvid <corvid@lavabit.com> | 2009-06-21 12:11:29 -0400 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-06-21 12:11:29 -0400 |
commit | 542198fcd56060d0ddd670554d1bf0f0c2002003 (patch) | |
tree | fcc1493b4114a209462e4d19f6ffd29bf35a5809 | |
parent | d1e9237fdaf8a2e5ba5993fbd0efa9a016b4cc6e (diff) |
Minor cleanup (for secret input)
-rw-r--r-- | dw/fltkui.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 7a8e0a57..695a6152 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -29,7 +29,6 @@ #include <fltk/Widget.h> #include <fltk/Group.h> #include <fltk/Input.h> -#include <fltk/SecretInput.h> #include <fltk/TextEditor.h> #include <fltk/RadioButton.h> #include <fltk/CheckButton.h> @@ -550,12 +549,10 @@ FltkEntryResource::~FltkEntryResource () *allocation) { ::fltk::Input *input = - password ? - new ::fltk::SecretInput (allocation->x, allocation->y, - allocation->width, - allocation->ascent + allocation->descent) : new ::fltk::Input (allocation->x, allocation->y, allocation->width, allocation->ascent + allocation->descent); + if (password) + input->type(::fltk::Input::SECRET); input->callback (widgetCallback, this); input->when (::fltk::WHEN_ENTER_KEY_ALWAYS); |