diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-01-09 21:50:02 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-01-09 21:50:02 +0000 |
| commit | 6eff9b3b146ec35f7bf0eaf89924d9f052ba4bb9 (patch) | |
| tree | 661e5aac7aefbab26dab19477c736ec1bd3399ad /src/fl_dnd_win32.cxx | |
| parent | 45ff84b1f5e2f920460f1efef342e50472b1e642 (diff) | |
First round of DND additions to 1.1 - just X11 code, and I haven't added
the support in widgets yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_dnd_win32.cxx')
| -rw-r--r-- | src/fl_dnd_win32.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx index 6d4b5ab48..128fb6ec8 100644 --- a/src/fl_dnd_win32.cxx +++ b/src/fl_dnd_win32.cxx @@ -1,9 +1,9 @@ // -// "$Id: fl_dnd_win32.cxx,v 1.5 2001/09/10 01:16:17 spitzak Exp $" +// "$Id: fl_dnd_win32.cxx,v 1.5.2.1 2002/01/09 21:50:02 easysw Exp $" // // Drag & Drop code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-1999 by Bill Spitzak and others. +// Copyright 1998-2002 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -20,8 +20,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 // USA. // -// Please report all bugs and problems to "fltk-bugs@easysw.com". -// +// Please report all bugs and problems to "fltk-bugs@fltk.org // Dummy version of dnd for now, it waits until the FL_RELEASE and @@ -34,14 +33,14 @@ #include <fltk/Fl.h> #include <fltk/Fl_Window.h> -static bool grabfunc(int event) { +static int grabfunc(int event) { if (event == FL_RELEASE) Fl::pushed(0); return false; } -extern bool (*fl_local_grab)(int); // in Fl.cxx +extern int (*fl_local_grab)(int); // in Fl.cxx -bool Fl::dnd() { +int Fl::dnd() { Fl::first_window()->cursor(FL_CURSOR_HAND); fl_local_grab = grabfunc; while (Fl::pushed()) Fl::wait(); @@ -52,5 +51,5 @@ bool Fl::dnd() { // -// End of "$Id: fl_dnd_win32.cxx,v 1.5 2001/09/10 01:16:17 spitzak Exp $". +// End of "$Id: fl_dnd_win32.cxx,v 1.5.2.1 2002/01/09 21:50:02 easysw Exp $". // |
