diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-05-16 12:26:07 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-05-16 12:26:07 +0000 |
| commit | 74198871a67e9ca1bdc46fc9b57ac4b09649eddf (patch) | |
| tree | d8abdfa9be21febda997d3c88b08e919729acce3 /fluid/Fl_Type.h | |
| parent | 3f177d70dee93b576efb7807107dd66302ca5de4 (diff) | |
I18N didn't work right for menus - the messages numbers were wrong.
Added new "msgnum()" method to Fl_Type to handle computing the message
number on the fly.
Now initialize nl_catd and locale settings directly in the static
variables so that menu labels are correctly looked up. This hack shouldn't
be necessary in 2.0...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
| -rw-r--r-- | fluid/Fl_Type.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 605414f5e..0ed806f54 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -1,5 +1,5 @@ // -// "$Id: Fl_Type.h,v 1.5.2.7 2000/04/24 18:22:47 mike Exp $" +// "$Id: Fl_Type.h,v 1.5.2.8 2000/05/16 12:26:03 mike Exp $" // // Widget type header file for the Fast Light Tool Kit (FLTK). // @@ -11,7 +11,7 @@ // instance of this object. It could also have a "copy()" function, // but it was easier to implement this by using the file read/write // that is needed to save the setup anyways. -// Copyright 1998-1999 by Bill Spitzak and others. +// Copyright 1998-2000 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -110,6 +110,9 @@ public: virtual void write_code1(); // code and .h before children virtual void write_code2(); // code and .h after children + // get message number for I18N + int msgnum(); + // fake rtti: virtual int is_parent() const; virtual int is_widget() const; @@ -529,5 +532,5 @@ int storestring(const char *n, const char * & p, int nostrip=0); extern int include_H_from_C; // -// End of "$Id: Fl_Type.h,v 1.5.2.7 2000/04/24 18:22:47 mike Exp $". +// End of "$Id: Fl_Type.h,v 1.5.2.8 2000/05/16 12:26:03 mike Exp $". // |
