Author: manolo
Date: 2010-04-15 05:58:42 -0700 (Thu, 15 Apr 2010)
New Revision: 7510
Log:
Back to use of fl_file_chooser()

Modified:
   branches/branch-1.3/test/pixmap_browser.cxx

Modified: branches/branch-1.3/test/pixmap_browser.cxx
===================================================================
--- branches/branch-1.3/test/pixmap_browser.cxx 2010-04-15 11:27:15 UTC (rev 
7509)
+++ branches/branch-1.3/test/pixmap_browser.cxx 2010-04-15 12:58:42 UTC (rev 
7510)
@@ -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 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;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to