summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-valuators-counters.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-valuators-counters.adb')
-rw-r--r--src/fltk-widgets-valuators-counters.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fltk-widgets-valuators-counters.adb b/src/fltk-widgets-valuators-counters.adb
index a5bc3fe..6cda6d1 100644
--- a/src/fltk-widgets-valuators-counters.adb
+++ b/src/fltk-widgets-valuators-counters.adb
@@ -135,7 +135,7 @@ package body FLTK.Widgets.Valuators.Counters is
function Create
(X, Y, W, H : in Integer;
- Text : in String)
+ Text : in String := "")
return Counter is
begin
return This : Counter do
@@ -150,6 +150,7 @@ package body FLTK.Widgets.Valuators.Counters is
Widget_Convert.To_Address (This'Unchecked_Access));
counter_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
counter_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;