From c5960df5fb4d99098c4ecbc28cc2f90c7f02e9aa Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 9 Sep 2016 15:56:33 +0000 Subject: 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 --- src/Fl.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Fl.cxx') 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$". // -- cgit v1.2.3