Allowing to use FLTK objects in static initializers (cont'd).

Case of Fl_Native_File_Chooser.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10963 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2015-12-13 10:26:09 +00:00
parent 09cd712c0d
commit 69644d4032

View File

@ -375,6 +375,7 @@ int Fl_GTK_File_Chooser::show()
char *p;
char *before = NULL;
static char *gtk_wants = NULL;
fl_open_display();
// record in before the calling program's current locale
p = setlocale(LC_ALL, NULL);
if (p) before = strdup(p);