mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fix STR 27 - double-click in file chooser followed by single click was
treated as another double-click (actually triple click, but the effect was the same...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
CHANGES IN FLTK 1.1.4
|
CHANGES IN FLTK 1.1.4
|
||||||
|
|
||||||
|
- The file chooser did not reset the click count when
|
||||||
|
changing directories; if you clicked on a file in the
|
||||||
|
same position after changing directories with a
|
||||||
|
double- click, the chooser treated it as a triple
|
||||||
|
click (STR #27)
|
||||||
- Symbols with outlines did not get drawn inactive.
|
- Symbols with outlines did not get drawn inactive.
|
||||||
- The Fl_Help_View widget now provides a find() method
|
- The Fl_Help_View widget now provides a find() method
|
||||||
to search for text within the page.
|
to search for text within the page.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.30 2003/01/30 21:41:42 easysw Exp $"
|
// "$Id: Fl_File_Chooser2.cxx,v 1.1.2.31 2003/05/26 01:39:53 easysw Exp $"
|
||||||
//
|
//
|
||||||
// More Fl_File_Chooser routines.
|
// More Fl_File_Chooser routines.
|
||||||
//
|
//
|
||||||
@@ -403,6 +403,12 @@ Fl_File_Chooser::fileListCB()
|
|||||||
{
|
{
|
||||||
// Change directories...
|
// Change directories...
|
||||||
directory(pathname);
|
directory(pathname);
|
||||||
|
|
||||||
|
// Reset the click count so that a click in the same spot won't
|
||||||
|
// be treated as a triple-click. We use a value of -1 because
|
||||||
|
// the next click will increment click count to 0, which is what
|
||||||
|
// we really want...
|
||||||
|
Fl::event_clicks(-1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1159,5 +1165,5 @@ unquote_pathname(char *dst, // O - Destination string
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.30 2003/01/30 21:41:42 easysw Exp $".
|
// End of "$Id: Fl_File_Chooser2.cxx,v 1.1.2.31 2003/05/26 01:39:53 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user