summaryrefslogtreecommitdiff
path: root/fltk-widgets-groups-text_displays-text_editors.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-09-07 02:15:57 +1000
committerJed Barber <jjbarber@y7mail.com>2016-09-07 02:15:57 +1000
commite9add081b396a0cbfdf59df9d340afe44d9b9544 (patch)
treead5a4cb0d3e7a5ee228f7e5d954a78dc1c0e6f22 /fltk-widgets-groups-text_displays-text_editors.adb
parentdac7e747e5c61d78deffdccc986d202e9f0d63bb (diff)
Now using widget user data to refer back to Ada side of things, will enable easy implementation of callbacks
Diffstat (limited to 'fltk-widgets-groups-text_displays-text_editors.adb')
-rw-r--r--fltk-widgets-groups-text_displays-text_editors.adb10
1 files changed, 3 insertions, 7 deletions
diff --git a/fltk-widgets-groups-text_displays-text_editors.adb b/fltk-widgets-groups-text_displays-text_editors.adb
index f5eead6..447da2c 100644
--- a/fltk-widgets-groups-text_displays-text_editors.adb
+++ b/fltk-widgets-groups-text_displays-text_editors.adb
@@ -21,13 +21,6 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
- procedure fl_group_end
- (TE : in System.Address);
- pragma Import (C, fl_group_end, "fl_group_end");
-
-
-
-
procedure Finalize
(This : in out Text_Editor) is
begin
@@ -55,6 +48,9 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
Interfaces.C.int (H),
Interfaces.C.To_C (Text));
fl_group_end (This.Void_Ptr);
+ fl_widget_set_user_data
+ (This.Void_Ptr,
+ Widget_Convert.To_Address (This'Unchecked_Access));
end return;
end Create;