summaryrefslogtreecommitdiff
path: root/src/c_fl_menuitem.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-20 00:42:19 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-20 00:42:19 +1300
commit82eb9509e9e273e8e9e7e584553ccc49f476d4a3 (patch)
treefcd903955511ba8798e76f76154c4d5b841ad6a5 /src/c_fl_menuitem.cpp
parentf27eb859eff94ec9c13239daee15f60ffecde089 (diff)
Filled holes in Fl_Text_Editor binding and make key/modifier/shortcut/flag representations more in line with C++
Diffstat (limited to 'src/c_fl_menuitem.cpp')
-rw-r--r--src/c_fl_menuitem.cpp6
1 files changed, 3 insertions, 3 deletions
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<Fl_Callback_p>(&menu_item_callback_hook), c);
mi->flags = static_cast<int>(f);
@@ -145,11 +145,11 @@ void fl_menu_item_set_shortcut(MENUITEM mi, int s) {
static_cast<Fl_Menu_Item*>(mi)->shortcut(s);
}
-unsigned long fl_menu_item_get_flags(MENUITEM mi) {
+int fl_menu_item_get_flags(MENUITEM mi) {
return static_cast<Fl_Menu_Item*>(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<Fl_Menu_Item*>(mi)->flags = f;
}