mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 02:46:34 +08:00
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:
@@ -375,6 +375,7 @@ int Fl_GTK_File_Chooser::show()
|
|||||||
char *p;
|
char *p;
|
||||||
char *before = NULL;
|
char *before = NULL;
|
||||||
static char *gtk_wants = NULL;
|
static char *gtk_wants = NULL;
|
||||||
|
fl_open_display();
|
||||||
// record in before the calling program's current locale
|
// record in before the calling program's current locale
|
||||||
p = setlocale(LC_ALL, NULL);
|
p = setlocale(LC_ALL, NULL);
|
||||||
if (p) before = strdup(p);
|
if (p) before = strdup(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user