summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-04-15 12:58:42 +0000
committerManolo Gouy <Manolo>2010-04-15 12:58:42 +0000
commite0c889087430fcbd990d8edb33643369b2e13cc3 (patch)
treeee083539d9aa9063f434ea1d57373268f3d85157
parent590020a9459a3d7444f269228775f37a0f758152 (diff)
Back to use of fl_file_chooser()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--test/pixmap_browser.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx
index 51bb4e6d1..4df8c1fed 100644
--- a/test/pixmap_browser.cxx
+++ b/test/pixmap_browser.cxx
@@ -32,7 +32,7 @@
#include <FL/Fl_Shared_Image.H>
#include <string.h>
#include <errno.h>
-#include <FL/Fl_Native_File_Chooser.H>
+#include <FL/Fl_File_Chooser.H>
#include <FL/fl_message.H>
Fl_Box *b;
@@ -87,12 +87,9 @@ void file_cb(const char *n) {
}
void button_cb(Fl_Widget *,void *) {
- Fl_Native_File_Chooser fnfc;
- fnfc.title("Pick an image file");
- fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE);
- fnfc.filter("Image files\t*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}");
- if ( fnfc.show() ) return;
- file_cb(fnfc.filename());
+ fl_file_chooser_callback(file_cb);
+ fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name);
+ fl_file_chooser_callback(0);
}
int dvisual = 0;