diff options
| author | Manolo Gouy <Manolo> | 2016-09-09 15:56:33 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-09-09 15:56:33 +0000 |
| commit | c5960df5fb4d99098c4ecbc28cc2f90c7f02e9aa (patch) | |
| tree | 262d21c1cb4e6fba5dfb48424e61f20ef264bdf2 /src/Fl.cxx | |
| parent | 86e48ce2ca8269e2b94c57d4988c4fd9e4d2a202 (diff) | |
Rewrite fl_open_callback() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index b964614a0..fe6f44ed8 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1993,6 +1993,17 @@ FL_EXPORT Window fl_xid_(const Fl_Window *w) { return temp ? temp->xid : 0; } +/** Register a function called for each file dropped onto an application icon. + + This function is effective only on the Mac OS X platform. + \e cb will be called with a single Unix-style file name and path. + If multiple files were dropped, \e cb will be called multiple times. + */ +void fl_open_callback(void (*cb)(const char *)) +{ + Fl::system_driver()->open_callback(cb); +} + // // End of "$Id$". // |
