summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-09-09 15:56:33 +0000
committerManolo Gouy <Manolo>2016-09-09 15:56:33 +0000
commitc5960df5fb4d99098c4ecbc28cc2f90c7f02e9aa (patch)
tree262d21c1cb4e6fba5dfb48424e61f20ef264bdf2 /FL
parent86e48ce2ca8269e2b94c57d4988c4fd9e4d2a202 (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 'FL')
-rw-r--r--FL/Fl_System_Driver.H2
-rw-r--r--FL/mac.H8
2 files changed, 2 insertions, 8 deletions
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.
*