mirror of https://github.com/fltk/fltk
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:
parent
09cd712c0d
commit
69644d4032
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue