diff options
| author | Manolo Gouy <Manolo> | 2017-09-19 19:33:54 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-09-19 19:33:54 +0000 |
| commit | da2d4a8ee53e49b21f315516dad2c96b232013a0 (patch) | |
| tree | 229a358107a28be70298fa1e9db81335f0025462 /src/Fl.cxx | |
| parent | 213b955442a2b1428996fb30cb965d001c7da252 (diff) | |
Convert the initialisation of global variables fl_local_shift, fl_local_meta, etc... using the driver approach.
This avoids repeating the default values "Shift", "Meta", etc... for several platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index c60f707a3..6a3e0170b 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -2030,6 +2030,13 @@ int Fl::get_font_sizes(Fl_Font fnum, int*& sizep) { return Fl_Graphics_Driver::default_driver().get_font_sizes(fnum, sizep); } +// Pointers you can use to change FLTK to another language. +// Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx +FL_EXPORT const char* fl_local_shift = Fl::system_driver()->shift_name(); +FL_EXPORT const char* fl_local_meta = Fl::system_driver()->meta_name(); +FL_EXPORT const char* fl_local_alt = Fl::system_driver()->alt_name(); +FL_EXPORT const char* fl_local_ctrl = Fl::system_driver()->control_name(); + // // End of "$Id$". // |
