Document that fl_mac_set_about() is deprecated, MacOS-specific and replaced by cross-platform Fl_Sys_Menu_Bar::about().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2018-02-22 17:04:37 +00:00
parent 9dce38099a
commit a0863e393a
4 changed files with 13 additions and 7 deletions
-7
View File
@@ -104,13 +104,6 @@ public:
extern Fl_Sys_Menu_Bar *fl_sys_menu_bar; extern Fl_Sys_Menu_Bar *fl_sys_menu_bar;
/**
* Attaches a callback to the "About myprog" item of the system application menu.
For back-compatibility. Equivalent to Fl_Sys_Menu_Bar::about(cb, user_data).
*/
inline void fl_mac_set_about(Fl_Callback *cb, void *user_data, int shortcut = 0) { Fl_Sys_Menu_Bar::about(cb, user_data);}
#endif // Fl_Sys_Menu_Bar_H #endif // Fl_Sys_Menu_Bar_H
// //
+7
View File
@@ -113,6 +113,13 @@ extern CGContextRef fl_gc;
\sa \ref osissues_macos \sa \ref osissues_macos
@{ */ @{ */
/**
* Attaches a callback to the "About myprog" item of the system application menu.
For back-compatibility.
Equivalent to Fl_Sys_Menu_Bar::about(Fl_Callback *cb, void *user_data).
*/
void fl_mac_set_about(Fl_Callback *cb, void *user_data, int shortcut = 0);
/** \brief The version number of the running Mac OS X (e.g., 100604 for 10.6.4) /** \brief The version number of the running Mac OS X (e.g., 100604 for 10.6.4)
*/ */
+2
View File
@@ -780,6 +780,8 @@ void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut)
\par \par
Attaches the callback \c cb to the "About myprog" item of the system application menu. Attaches the callback \c cb to the "About myprog" item of the system application menu.
\c cb will be called with NULL first argument and \c user_data second argument. \c cb will be called with NULL first argument and \c user_data second argument.
This MacOS-specific function is deprecated in FLTK 1.4 and replaced by
Fl_Sys_Menu_Bar::about(Fl_Callback *cb, void *data) which is cross-platform.
Fl_Sys_Menu_Bar class Fl_Sys_Menu_Bar class
+4
View File
@@ -665,6 +665,10 @@ void Fl_MacOS_Sys_Menu_Bar_Driver::rename_window(Fl_Window *win)
} }
} }
void fl_mac_set_about(Fl_Callback *cb, void *user_data, int shortcut) {
Fl_Sys_Menu_Bar::about(cb, user_data);
}
#endif /* __APPLE__ */ #endif /* __APPLE__ */
// //