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:
parent
9dce38099a
commit
a0863e393a
@ -104,13 +104,6 @@ public:
|
||||
|
||||
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
|
||||
|
||||
//
|
||||
|
||||
7
FL/mac.H
7
FL/mac.H
@ -113,6 +113,13 @@ extern CGContextRef fl_gc;
|
||||
\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)
|
||||
*/
|
||||
|
||||
@ -780,6 +780,8 @@ void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut)
|
||||
\par
|
||||
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.
|
||||
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
|
||||
|
||||
|
||||
@ -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__ */
|
||||
|
||||
//
|
||||
|
||||
Loading…
Reference in New Issue
Block a user