diff options
Diffstat (limited to 'src/fltk-widgets-inputs-secret.adb')
-rw-r--r-- | src/fltk-widgets-inputs-secret.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-inputs-secret.adb b/src/fltk-widgets-inputs-secret.adb index 8fabd50..d5a68b4 100644 --- a/src/fltk-widgets-inputs-secret.adb +++ b/src/fltk-widgets-inputs-secret.adb @@ -75,7 +75,7 @@ package body FLTK.Widgets.Inputs.Secret is function Create (X, Y, W, H : in Integer; - Text : in String) + Text : in String := "") return Secret_Input is begin return This : Secret_Input do @@ -90,6 +90,7 @@ package body FLTK.Widgets.Inputs.Secret is Widget_Convert.To_Address (This'Unchecked_Access)); secret_input_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); secret_input_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); + fl_widget_set_label (This.Void_Ptr, Interfaces.C.To_C (Text)); end return; end Create; |