diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 21:52:38 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-10-30 21:52:38 +0000 |
| commit | 8ad7e5ccc002031027318c3bc3ecbd3b2c0a86b8 (patch) | |
| tree | 5c43d0da3a2222cec29942d843d5931448f64d96 /src | |
| parent | b5a73c78e61c18f4d08aec39a6edf5b19b1dbfd4 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 1 | ||||
| -rw-r--r-- | src/Fl_Preferences.cxx | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 33b7e3f2e..93335dc89 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -727,6 +727,7 @@ Fl_File_Chooser::fileListCB() { // Hide the window - picked the file... window->hide(); + if (callback_) (*callback_)(this, data_); } } else diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index d8d3eaf10..f4c58be48 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -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> |
