summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-02-12 09:16:04 +0000
committerManolo Gouy <Manolo>2018-02-12 09:16:04 +0000
commit838168defc0a126af6333c5172159a6b44748385 (patch)
tree42627db670784fdf455451dded45492ff0e64f51
parentf5bd951f5c9945f236dfae7412e0dcecefb40687 (diff)
Restore documentation of function Fl_Mac_App_Menu::custom_application_menu_items()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/mac.H7
-rw-r--r--src/Fl_MacOS_Sys_Menu_Bar.mm7
2 files changed, 6 insertions, 8 deletions
diff --git a/FL/mac.H b/FL/mac.H
index 7db23387b..0e7b9cc79 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -109,7 +109,7 @@ extern CGContextRef fl_gc;
*/
/** \defgroup group_macosx Mac OS X-specific symbols
- Mac OS X-specific symbols declared in <FL/platform.H> or <FL/gl.h>
+ Mac OS X-specific symbols declared in <FL/platform.H>
\sa \ref osissues_macos
@{ */
@@ -143,6 +143,11 @@ public:
static const char *show;
/** Localizable text for the "Quit xxx" application menu item */
static const char *quit;
+ /** Adds custom menu item(s) to the application menu of the system menu bar.
+ They are positioned after the "Print Front Window" item, or at its place
+ if it was removed with <tt>Fl_Mac_App_Menu::print = ""</tt>.
+ \param m zero-ending array of Fl_Menu_Item 's.
+ */
static void custom_application_menu_items(const Fl_Menu_Item *m);
};
diff --git a/src/Fl_MacOS_Sys_Menu_Bar.mm b/src/Fl_MacOS_Sys_Menu_Bar.mm
index b5a9fba9a..0b6cb1896 100644
--- a/src/Fl_MacOS_Sys_Menu_Bar.mm
+++ b/src/Fl_MacOS_Sys_Menu_Bar.mm
@@ -505,12 +505,6 @@ int Fl_MacOS_Sys_Menu_Bar_Driver::insert(int index, const char* label, int short
\see \ref osissues_macos for another way to localization.
*/
-
-/** Adds custom menu item(s) to the application menu of the system menu bar.
- They are positioned after the "Print Front Window" item, or at its place
- if it was removed with <tt>Fl_Mac_App_Menu::print = ""</tt>.
- \param m zero-ending array of Fl_Menu_Item 's.
- */
void Fl_Mac_App_Menu::custom_application_menu_items(const Fl_Menu_Item *m)
{
fl_open_display(); // create the system menu, if needed
@@ -534,7 +528,6 @@ void Fl_Mac_App_Menu::custom_application_menu_items(const Fl_Menu_Item *m)
}
}
-
static void minimize_win_cb(Fl_Widget *, void *data)
{
[[NSApp mainWindow] miniaturize:nil];