diff options
Diffstat (limited to 'src/fltk-widgets-buttons-light-round-radio.adb')
-rw-r--r-- | src/fltk-widgets-buttons-light-round-radio.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-buttons-light-round-radio.adb b/src/fltk-widgets-buttons-light-round-radio.adb index b97b714..c1a9271 100644 --- a/src/fltk-widgets-buttons-light-round-radio.adb +++ b/src/fltk-widgets-buttons-light-round-radio.adb @@ -75,7 +75,7 @@ package body FLTK.Widgets.Buttons.Light.Round.Radio is function Create (X, Y, W, H : in Integer; - Text : in String) + Text : in String := "") return Radio_Round_Button is begin return This : Radio_Round_Button do @@ -90,6 +90,7 @@ package body FLTK.Widgets.Buttons.Light.Round.Radio is Widget_Convert.To_Address (This'Unchecked_Access)); radio_round_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); radio_round_button_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; |