summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-buttons.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2018-04-29 00:39:36 +1000
committerJed Barber <jjbarber@y7mail.com>2018-04-29 00:39:36 +1000
commitca9cca53a19145216cb0e00462db239e1194696d (patch)
treef76a7688667c12bfe8ccfb80343fe7a48aa71624 /src/fltk-widgets-buttons.adb
parentae3aaf71338960e85d27c88d7004497409c6a6d9 (diff)
FLTK.Event done, a whole bunch more polishing
Diffstat (limited to 'src/fltk-widgets-buttons.adb')
-rw-r--r--src/fltk-widgets-buttons.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fltk-widgets-buttons.adb b/src/fltk-widgets-buttons.adb
index 050c571..2f5cbf4 100644
--- a/src/fltk-widgets-buttons.adb
+++ b/src/fltk-widgets-buttons.adb
@@ -188,17 +188,17 @@ package body FLTK.Widgets.Buttons is
function Get_Shortcut
(This : in Button)
- return Shortcut_Key is
+ return Key_Combo is
begin
- return C_To_Key (Interfaces.C.unsigned_long (fl_button_get_shortcut (This.Void_Ptr)));
+ return To_Ada (Interfaces.C.unsigned_long (fl_button_get_shortcut (This.Void_Ptr)));
end Get_Shortcut;
procedure Set_Shortcut
(This : in out Button;
- Key : in Shortcut_Key) is
+ Key : in Key_Combo) is
begin
- fl_button_set_shortcut (This.Void_Ptr, Interfaces.C.int (Key_To_C (Key)));
+ fl_button_set_shortcut (This.Void_Ptr, Interfaces.C.int (To_C (Key)));
end Set_Shortcut;