diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-09-07 02:15:57 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-09-07 02:15:57 +1000 |
commit | 6e16a790b13ec50390c3b019598c1fa649f32c98 (patch) | |
tree | 2ce6f1b773b90c51e6b4dfc2974da6464b1bb29c /src/fltk_binding/fltk-widgets-buttons-radio.adb | |
parent | 48f31d9f71523aa9cc027c16e5c8cd48ff1e792a (diff) |
Now using widget user data to refer back to Ada side of things, will enable easy implementation of callbacks
Diffstat (limited to 'src/fltk_binding/fltk-widgets-buttons-radio.adb')
-rw-r--r-- | src/fltk_binding/fltk-widgets-buttons-radio.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fltk_binding/fltk-widgets-buttons-radio.adb b/src/fltk_binding/fltk-widgets-buttons-radio.adb index 8ca6f44..d3fd405 100644 --- a/src/fltk_binding/fltk-widgets-buttons-radio.adb +++ b/src/fltk_binding/fltk-widgets-buttons-radio.adb @@ -47,6 +47,9 @@ package body FLTK.Widgets.Buttons.Radio is Interfaces.C.int (W), Interfaces.C.int (H), Interfaces.C.To_C (Text)); + fl_widget_set_user_data + (This.Void_Ptr, + Widget_Convert.To_Address (This'Unchecked_Access)); end return; end Create; |