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 --- FL/Fl_System_Driver.H | 2 ++ FL/mac.H | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'FL') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 89d18a8a2..e9f0f38c6 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -208,6 +208,8 @@ public: virtual void add_fd(int fd, Fl_FD_Handler cb, void* = 0); virtual void remove_fd(int, int when); virtual void remove_fd(int); + // the default implementation of open_callback() may be enough + virtual void open_callback(void (*)(const char *)); }; #endif // FL_SYSTEM_DRIVER_H diff --git a/FL/mac.H b/FL/mac.H index ecfeaa41e..8332faba9 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -110,14 +110,6 @@ extern CGContextRef fl_gc; \sa \ref osissues_macos @{ */ -#ifdef FL_DOXYGEN -/** @brief Register a function called for each file dropped onto an application icon. - \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. - */ -extern void fl_open_callback(void (*cb)(const char *)); -#endif - /** * \brief Attaches a callback to the "About myprog" item of the system application menu. * -- cgit v1.2.3