diff options
| author | Manolo Gouy <Manolo> | 2016-03-28 17:36:07 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-28 17:36:07 +0000 |
| commit | aacb5277e7499ed087cff495169484f6f6274d3c (patch) | |
| tree | 703bac8a791183522c88d13a6b1dfbfa0e6996a8 /src/Fl_Text_Display.cxx | |
| parent | 4fbbab8b41f4775752587f18c7d1b32bbd947c27 (diff) | |
Rewrite Fl_dnd.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index cae7aedfd..cf9e0c9e5 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -31,6 +31,7 @@ #include <FL/Fl_Text_Buffer.H> #include <FL/Fl_Text_Display.H> #include <FL/Fl_Window.H> +#include <FL/Fl_System_Driver.H> #if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform editor feel #elif defined(FL_PORTING) @@ -3913,11 +3914,7 @@ int Fl_Text_Display::handle(int event) { if (dragType==DRAG_START_DND) { if (!Fl::event_is_click() && Fl::dnd_text_ops()) { const char* copy = buffer()->selection_text(); -#ifdef __APPLE__ // PORTME: Fl_Screen_Driver - platform behavior - Fl_X::dnd(1); -#else - Fl::dnd(); -#endif + Fl_System_Driver::driver()->dnd(1); free((void*)copy); } return 1; |
