summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-13 12:52:51 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-13 12:52:51 +1300
commitc1005ae98d1c07b7e9f14277f99dc1a6c7d42646 (patch)
tree0a4a2656adba8ca5f44f9132cbe38a33f0f53a94
parent74cb50a7f7e14cec7195d30e50b76e17969c9e62 (diff)
Check_Browser Set_Checked now has a default
-rw-r--r--doc/fl_check_browser.html2
-rw-r--r--progress.txt1
-rw-r--r--src/fltk-widgets-groups-browsers-check.adb2
-rw-r--r--src/fltk-widgets-groups-browsers-check.ads2
4 files changed, 3 insertions, 4 deletions
diff --git a/doc/fl_check_browser.html b/doc/fl_check_browser.html
index 3c172eb..b09bd0e 100644
--- a/doc/fl_check_browser.html
+++ b/doc/fl_check_browser.html
@@ -125,7 +125,7 @@ void checked(int item, int b);
procedure Set_Checked
(This : in out Check_Browser;
Index : in Positive;
- State : in Boolean);
+ State : in Boolean := True);
</pre></td>
</tr>
diff --git a/progress.txt b/progress.txt
index 920a014..8bba793 100644
--- a/progress.txt
+++ b/progress.txt
@@ -213,7 +213,6 @@ Widgets with incomplete APIs:
Widgets
Widgets.Groups
-Widgets.Groups.Browsers.Check (Set_Checked)
Widgets.Groups.Input_Choices (menu)
Widgets.Groups.Scrolls (attributes, resize, type, protected)
Widgets.Groups.Text_Displays
diff --git a/src/fltk-widgets-groups-browsers-check.adb b/src/fltk-widgets-groups-browsers-check.adb
index b377a25..81ba06b 100644
--- a/src/fltk-widgets-groups-browsers-check.adb
+++ b/src/fltk-widgets-groups-browsers-check.adb
@@ -357,7 +357,7 @@ package body FLTK.Widgets.Groups.Browsers.Check is
procedure Set_Checked
(This : in out Check_Browser;
Index : in Positive;
- State : in Boolean) is
+ State : in Boolean := True) is
begin
fl_check_browser_set_checked
(This.Void_Ptr,
diff --git a/src/fltk-widgets-groups-browsers-check.ads b/src/fltk-widgets-groups-browsers-check.ads
index 8ceacd7..85f8fd0 100644
--- a/src/fltk-widgets-groups-browsers-check.ads
+++ b/src/fltk-widgets-groups-browsers-check.ads
@@ -78,7 +78,7 @@ package FLTK.Widgets.Groups.Browsers.Check is
procedure Set_Checked
(This : in out Check_Browser;
Index : in Positive;
- State : in Boolean);
+ State : in Boolean := True);
function Number_Checked
(This : in Check_Browser)