summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-packed.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-groups-packed.adb')
-rw-r--r--src/fltk-widgets-groups-packed.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-groups-packed.adb b/src/fltk-widgets-groups-packed.adb
index 077d3c1..69b6e7c 100644
--- a/src/fltk-widgets-groups-packed.adb
+++ b/src/fltk-widgets-groups-packed.adb
@@ -91,7 +91,7 @@ package body FLTK.Widgets.Groups.Packed is
function Create
(X, Y, W, H : in Integer;
- Text : in String)
+ Text : in String := "")
return Packed_Group is
begin
return This : Packed_Group do
@@ -107,6 +107,7 @@ package body FLTK.Widgets.Groups.Packed is
Widget_Convert.To_Address (This'Unchecked_Access));
pack_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
pack_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;