diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2009-12-12 18:26:12 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2009-12-12 18:26:12 +0000 |
| commit | 64716f01e27a9c8ec28cfa9fd9e9822930a14ada (patch) | |
| tree | 7b08253cee91dcc2f2bda3fa9b1e3ecbe2894d33 /FL | |
| parent | 3f689a7d2ff8dd2a2089f7c4c045c89d07db6110 (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Sys_Menu_Bar.H | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
