summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-buttons-light-check.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-buttons-light-check.adb')
-rw-r--r--src/fltk-widgets-buttons-light-check.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-buttons-light-check.adb b/src/fltk-widgets-buttons-light-check.adb
index 415a91b..027f9f7 100644
--- a/src/fltk-widgets-buttons-light-check.adb
+++ b/src/fltk-widgets-buttons-light-check.adb
@@ -75,7 +75,7 @@ package body FLTK.Widgets.Buttons.Light.Check is
function Create
(X, Y, W, H : in Integer;
- Text : in String)
+ Text : in String := "")
return Check_Button is
begin
return This : Check_Button do
@@ -90,6 +90,7 @@ package body FLTK.Widgets.Buttons.Light.Check is
Widget_Convert.To_Address (This'Unchecked_Access));
check_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
check_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;