diff options
| author | Manolo Gouy <Manolo> | 2014-01-14 10:27:16 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-01-14 10:27:16 +0000 |
| commit | 86f2214b28eb582205bdc10986862813d52cc9c1 (patch) | |
| tree | f916d6b3acccba679f055431fa24eb72f8b4d525 /FL | |
| parent | 6beedf4c28f5b51ef6f2a035b113e6a7265612c3 (diff) | |
Fix the issue reported in "Fl_Sys_Menu's add method throws errors" of fltk.general
(http://www.fltk.org/newsgroups.php?s29083+gfltk.general+v29086)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Sys_Menu_Bar.H | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Sys_Menu_Bar.H b/FL/Fl_Sys_Menu_Bar.H index cf01c55b7..206137a46 100644 --- a/FL/Fl_Sys_Menu_Bar.H +++ b/FL/Fl_Sys_Menu_Bar.H @@ -45,6 +45,9 @@ public: const Fl_Menu_Item *menu() const {return Fl_Menu_::menu();} void menu(const Fl_Menu_Item *m); int add(const char* label, int shortcut, Fl_Callback*, void *user_data=0, int flags=0); + int add(const char* label, const char* shortcut, Fl_Callback* cb, void *user_data=0, int flags=0) { + return add(label, fl_old_shortcut(shortcut), cb, user_data, flags); + } int insert(int index, const char* label, int shortcut, Fl_Callback *cb, void *user_data=0, int flags=0); void remove(int n); void replace(int rank, const char *name); |
