From 82eb9509e9e273e8e9e7e584553ccc49f476d4a3 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 20 Jan 2025 00:42:19 +1300 Subject: Filled holes in Fl_Text_Editor binding and make key/modifier/shortcut/flag representations more in line with C++ --- src/c_fl_menuitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/c_fl_menuitem.cpp') diff --git a/src/c_fl_menuitem.cpp b/src/c_fl_menuitem.cpp index cb4ebee..b72c065 100644 --- a/src/c_fl_menuitem.cpp +++ b/src/c_fl_menuitem.cpp @@ -27,7 +27,7 @@ void * null_fl_menu_item() { return mi; } -void * new_fl_menu_item(char * t, void * c, unsigned long s, unsigned long f) { +void * new_fl_menu_item(char * t, void * c, int s, int f) { Fl_Menu_Item *mi = new Fl_Menu_Item; mi->callback(c==0?0:reinterpret_cast(&menu_item_callback_hook), c); mi->flags = static_cast(f); @@ -145,11 +145,11 @@ void fl_menu_item_set_shortcut(MENUITEM mi, int s) { static_cast(mi)->shortcut(s); } -unsigned long fl_menu_item_get_flags(MENUITEM mi) { +int fl_menu_item_get_flags(MENUITEM mi) { return static_cast(mi)->flags; } -void fl_menu_item_set_flags(MENUITEM mi, unsigned long f) { +void fl_menu_item_set_flags(MENUITEM mi, int f) { static_cast(mi)->flags = f; } -- cgit