aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r--dw/fltkui.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 80dbb7d5..b2d18ba0 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -47,8 +47,7 @@
*/
class CustInput2 : public Fl_Input {
public:
- CustInput2 (int x, int y, int w, int h, const char* l=0) :
- Fl_Input(x,y,w,h,l) { placeholder = NULL; showing_placeholder = false; };
+ CustInput2 (int x, int y, int w, int h, const char* l=0);
~CustInput2 () { if (placeholder) free(placeholder); };
void set_placeholder(const char *str);
int show_placeholder();
@@ -66,6 +65,14 @@ private:
int usual_type;
};
+CustInput2::CustInput2 (int x, int y, int w, int h, const char* l) :
+ Fl_Input(x,y,w,h,l)
+{
+ placeholder = NULL;
+ showing_placeholder = false;
+ usual_color = FL_BLACK; /* just init until widget style is set */
+};
+
/*
* Show normal text.
*/