summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-12-13 10:26:09 +0000
committerManolo Gouy <Manolo>2015-12-13 10:26:09 +0000
commit69644d4032d98f4bd04fa6d7807f6a4564a46ac0 (patch)
tree8c312a3903fe6575aefb8d064d641b9c59073e2a
parent09cd712c0d0e337bc7505cb8ae00d1a3fdbe8ee5 (diff)
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
-rw-r--r--src/Fl_Native_File_Chooser_GTK.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx
index bc5bd6862..27d744586 100644
--- a/src/Fl_Native_File_Chooser_GTK.cxx
+++ b/src/Fl_Native_File_Chooser_GTK.cxx
@@ -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);