From 64716f01e27a9c8ec28cfa9fd9e9822930a14ada Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 12 Dec 2009 18:26:12 +0000 Subject: Applied the 'recap.zip' files to the Cocoa patch. About diaog now correct. Much other stuff should work better now. Exciting! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Sys_Menu_Bar.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Sys_Menu_Bar.H b/FL/Fl_Sys_Menu_Bar.H index a0dc84f98..40e587a8b 100644 --- a/FL/Fl_Sys_Menu_Bar.H +++ b/FL/Fl_Sys_Menu_Bar.H @@ -29,6 +29,7 @@ #define Fl_Sys_Menu_Bar_H #include "Fl_Menu_Bar.H" +#include "x.H" #ifdef __APPLE__ @@ -38,9 +39,12 @@ protected: public: Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0) : Fl_Menu_Bar(x,y,w,h,l) { - deactivate(); // don't let the old area take events + deactivate(); // don't let the old area take events + fl_sys_menu_bar = this; } void menu(const Fl_Menu_Item *m); + int add(const char* label, int shortcut, Fl_Callback*, void *user_data=0, int flags=0); + void remove(int n); }; #else -- cgit v1.2.3