summaryrefslogtreecommitdiff
path: root/src/fltk-file_choosers.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 00:53:56 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 00:53:56 +1300
commitf9e453e3d456514066e8ecbed9fbac93a588a0d0 (patch)
tree06587afde830fb324d5ab7372f0f1686c4fd993a /src/fltk-file_choosers.adb
parent67a43ef89ba41ac32b86cda7396c16fffaf691b3 (diff)
Using the type method is now more consistent
Diffstat (limited to 'src/fltk-file_choosers.adb')
-rw-r--r--src/fltk-file_choosers.adb12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/fltk-file_choosers.adb b/src/fltk-file_choosers.adb
index 3eee496..5662f8a 100644
--- a/src/fltk-file_choosers.adb
+++ b/src/fltk-file_choosers.adb
@@ -1118,7 +1118,7 @@ package body FLTK.File_Choosers is
end Set_Text_Size;
- function Get_Chooser_Kind
+ function Get_Kind
(This : in File_Chooser)
return Chooser_Kind
is
@@ -1127,16 +1127,18 @@ package body FLTK.File_Choosers is
pragma Assert (Ret in 0 .. Chooser_Kind'Pos (Chooser_Kind'Last));
return Chooser_Kind'Val (Ret);
exception
- when Chk.Assertion_Error => raise Internal_FLTK_Error;
- end Get_Chooser_Kind;
+ when Chk.Assertion_Error => raise Internal_FLTK_Error with
+ "Fl_File_Chooser::type returned unexpected int value of " &
+ Interfaces.C.int'Image (Ret);
+ end Get_Kind;
- procedure Set_Chooser_Kind
+ procedure Set_Kind
(This : in out File_Chooser;
Kind : in Chooser_Kind) is
begin
fl_file_chooser_set_type (This.Void_Ptr, Chooser_Kind'Pos (Kind));
- end Set_Chooser_Kind;
+ end Set_Kind;