From d20c52da6cf4d437d6445ae6fdfeb00d694049cf Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 22 May 2017 21:59:20 +1000 Subject: Fixed Handle/Draw Hook mixup bug in Button Widget --- src/fltk-widgets-buttons.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fltk-widgets-buttons.adb b/src/fltk-widgets-buttons.adb index 15e4982..b28449f 100644 --- a/src/fltk-widgets-buttons.adb +++ b/src/fltk-widgets-buttons.adb @@ -86,7 +86,7 @@ package body FLTK.Widgets.Buttons is (This.Void_Ptr, Widget_Convert.To_Address (This'Unchecked_Access)); button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); - button_set_handle_hook (This.Void_Ptr, Draw_Hook'Address); + button_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); end return; end Create; -- cgit