From c1005ae98d1c07b7e9f14277f99dc1a6c7d42646 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 13 Jan 2025 12:52:51 +1300 Subject: Check_Browser Set_Checked now has a default --- doc/fl_check_browser.html | 2 +- progress.txt | 1 - src/fltk-widgets-groups-browsers-check.adb | 2 +- src/fltk-widgets-groups-browsers-check.ads | 2 +- 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); 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) -- cgit