diff options
Diffstat (limited to 'src/fltk-widgets-valuators-sliders-fill.adb')
-rw-r--r-- | src/fltk-widgets-valuators-sliders-fill.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-valuators-sliders-fill.adb b/src/fltk-widgets-valuators-sliders-fill.adb index dfb87dd..83f1ffb 100644 --- a/src/fltk-widgets-valuators-sliders-fill.adb +++ b/src/fltk-widgets-valuators-sliders-fill.adb @@ -75,7 +75,7 @@ package body FLTK.Widgets.Valuators.Sliders.Fill is function Create (X, Y, W, H : in Integer; - Text : in String) + Text : in String := "") return Fill_Slider is begin return This : Fill_Slider do @@ -90,6 +90,7 @@ package body FLTK.Widgets.Valuators.Sliders.Fill is Widget_Convert.To_Address (This'Unchecked_Access)); fill_slider_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); fill_slider_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; |