aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkui.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-07-03 19:45:26 +0000
committercorvid <corvid@lavabit.com>2011-07-03 19:45:26 +0000
commita9a2e89f9840938e1802cf457f887b17ead7376d (patch)
treea4a691a00be5f6fb8e0fcf22f46ea700b0d00c13 /dw/fltkui.hh
parent78032a7c42d76105620bd87c7bcac786194f27d5 (diff)
draw the labels when hidden inputs are shown
In fltk-1.3, it doesn't draw inside labels for Fl_Inputs, and it wasn't very nice anyway. Here I move them to the left. Johannes took a look at this change: "The only issue I could think of is that the additional draw_outside_label() would cause excessive redraws for some reason. But I didn't see anything like that during short testing here."
Diffstat (limited to 'dw/fltkui.hh')
-rw-r--r--dw/fltkui.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/dw/fltkui.hh b/dw/fltkui.hh
index daddfb78..a5bddc5a 100644
--- a/dw/fltkui.hh
+++ b/dw/fltkui.hh
@@ -286,6 +286,7 @@ private:
bool password;
const char *initText;
char *label;
+ int label_w;
bool editable;
static void widgetCallback (Fl_Widget *widget, void *data);
@@ -301,6 +302,7 @@ public:
~FltkEntryResource ();
void sizeRequest (core::Requisition *requisition);
+ void sizeAllocate (core::Allocation *allocation);
const char *getText ();
void setText (const char *text);