From ff65dbb5ae6f0c05703ba9561b2d7acb8f167900 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 26 Nov 2015 16:34:58 +0000 Subject: Mac OS only: added the Fl_Mac_App_Menu::custom_application_menu_items() method that allows customization of the application menu on the Mac platform. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/menubar.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/menubar.cxx b/test/menubar.cxx index 616ab3467..30c9fca6e 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -237,6 +237,16 @@ int main(int argc, char **argv) { ch2.callback(menu_location_cb, &menubar); #endif window.end(); + +#ifdef __APPLE__ + Fl_Menu_Item custom[] = { + {"Preferences", 0, test_cb, NULL, FL_MENU_DIVIDER}, + {"Radio1", 0, test_cb, NULL, FL_MENU_RADIO|FL_MENU_VALUE}, + {"Radio2", 0, test_cb, NULL, FL_MENU_RADIO}, + {0} + }; + Fl_Mac_App_Menu::custom_application_menu_items(custom); +#endif window.show(argc, argv); return Fl::run(); } -- cgit v1.2.3