summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widgets-menus-menu_bars.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk_binding/fltk-widgets-menus-menu_bars.adb')
-rw-r--r--src/fltk_binding/fltk-widgets-menus-menu_bars.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fltk_binding/fltk-widgets-menus-menu_bars.adb b/src/fltk_binding/fltk-widgets-menus-menu_bars.adb
index 8217f79..19d44e0 100644
--- a/src/fltk_binding/fltk-widgets-menus-menu_bars.adb
+++ b/src/fltk_binding/fltk-widgets-menus-menu_bars.adb
@@ -47,6 +47,9 @@ package body FLTK.Widgets.Menus.Menu_Bars 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;