Increase the max number of menus

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@1130 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-10-17 13:25:31 +00:00
parent e54fb71fa4
commit a58e2e5449
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyx_gui.C (init): increase max number of menus to 128.
2000-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/mathed/math_macro.C (MathMacroTemplate): initialize args to

View File

@ -45,6 +45,9 @@
#include "banner.xpm"
#endif
#include <vector>
extern vector<int>::size_type max_number_of_menus;
using std::endl;
FD_form_title * fd_form_title;
@ -241,6 +244,7 @@ void LyXGUI::init()
fl_setpup_fontsize(FL_NORMAL_SIZE);
fl_setpup_color(FL_MCOL, FL_BLACK);
fl_set_goodies_font(FL_NORMAL_STYLE, FL_NORMAL_SIZE);
max_number_of_menus = fl_setpup_maxpup(128);
// all lyxrc settings has to be done here as lyxrc has not yet
// been read when the GUI is created (Jug)

View File

@ -1283,7 +1283,7 @@ void Menus::ShowEditMenu(FL_OBJECT * ob, long)
fl_freepup(SubVersionControl);
}
vector<int>::size_type const max_number_of_menus = 32;
vector<int>::size_type max_number_of_menus = 32;
unsigned int const max_number_of_items = 25;
string Limit_string_length(string const & str) {