Skip to content

Commit

Permalink
Add details to the doc of fl_open_callback().
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Oct 19, 2017
1 parent 69533fe commit 4593081
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Fl.cxx
Expand Up @@ -2009,8 +2009,14 @@ FL_EXPORT Window fl_xid_(const Fl_Window *w) {
/** 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.
\c cb will be called with a single Unix-style file name and path.
If multiple files were dropped, \c cb will be called multiple times.
This function should be called before \c fl_open_display() is called,
either directly or indirectly (this happens at the first \c show() of a window),
to be effective for files dropped on the application icon at launch time.
It can also be called at any point to change the function used to open dropped files.
A call with a NULL argument, after a previous call, makes the app ignore files dropped later.
*/
void fl_open_callback(void (*cb)(const char *))
{
Expand Down

0 comments on commit 4593081

Please sign in to comment.