diff --git a/FL/Fl.H b/FL/Fl.H index 2c0d6cf1e..04dea16be 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -65,6 +65,14 @@ class Fl_Screen_Driver; # define FL_SOCKET int #endif +// Pointers you can use to change FLTK to a foreign language. +// Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx + +extern FL_EXPORT const char* fl_local_alt; ///< string pointer used in shortcuts, you can change it to another language +extern FL_EXPORT const char* fl_local_ctrl; ///< string pointer used in shortcuts, you can change it to another language +extern FL_EXPORT const char* fl_local_meta; ///< string pointer used in shortcuts, you can change it to another language +extern FL_EXPORT const char* fl_local_shift; ///< string pointer used in shortcuts, you can change it to another language + /** \defgroup callback_functions Callback function typedefs \brief Typedefs defined in for callback or handler functions passed as function parameters. diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index f5384407d..da2446542 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -27,13 +27,6 @@ #include #include -// Pointers you can use to change FLTK to a foreign language. -// Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx -extern FL_EXPORT const char* fl_local_alt; -extern FL_EXPORT const char* fl_local_ctrl; -extern FL_EXPORT const char* fl_local_meta; -extern FL_EXPORT const char* fl_local_shift; - /** \brief A base class for platform specific window handling code. */ diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx index 763dca752..886397b35 100644 --- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx @@ -22,10 +22,10 @@ // Pointers you can use to change FLTK to a foreign language. // Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx -const char* fl_local_alt = "Alt"; ///< string pointer used in shortcuts, you can change it to another language -const char* fl_local_ctrl = "Ctrl"; ///< string pointer used in shortcuts, you can change it to another language -const char* fl_local_meta = "Meta"; ///< string pointer used in shortcuts, you can change it to another language -const char* fl_local_shift = "Shift"; ///< string pointer used in shortcuts, you can change it to another language +const char* fl_local_alt = "Alt"; +const char* fl_local_ctrl = "Ctrl"; +const char* fl_local_meta = "Meta"; +const char* fl_local_shift = "Shift"; // // End of "$Id$".