Added callback when double-clicking file in a file chooser (STR#2346)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-10-30 21:52:38 +00:00
parent b5a73c78e6
commit 8ad7e5ccc0
5 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,7 @@
CHANGES IN FLTK 1.3.0
- Added callback when double-clicking file in a file chooser
(STR #2346)
- Fixed label alignment (STR #2436)
- Added interface to set color chooser mode (STR #2407)
- Fixed compile errors when HAVE_LIBJPEG was not defined

View File

@ -156,8 +156,6 @@ public:
// char export( const char *filename, Type fileFormat );
// char import( const char *filename );
// char copyTo(class Fl_Tree*); // deprecated, use Fl_Tree::load(Fl_Preferences&)
/**
'Name' provides a simple method to create numerical or more complex
procedural names for entries and groups on the fly.

View File

@ -727,6 +727,7 @@ Fl_File_Chooser::fileListCB()
{
// Hide the window - picked the file...
window->hide();
if (callback_) (*callback_)(this, data_);
}
}
else

View File

@ -28,7 +28,6 @@
#include <FL/Fl.H>
#include <FL/Fl_Preferences.H>
#include <FL/Fl_Plugin.H>
#include <FL/Fl_Tree.H>
#include <FL/filename.H>
#include <stdio.h>

View File

@ -88,7 +88,7 @@ void file_cb(const char *n) {
void button_cb(Fl_Widget *,void *) {
fl_file_chooser_callback(file_cb);
fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name);
puts(fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name));
fl_file_chooser_callback(0);
}