mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 13:05:35 +08:00
Fl_File_Chooser wasn't calling Fl_Window::hotspot() prior to showing, so
you got the chooser centered where the mouse pointer was when your application first created it. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
CHANGES IN FLTK 1.1.0b8
|
CHANGES IN FLTK 1.1.0b8
|
||||||
|
|
||||||
|
- The Fl_File_Chooser widget now uses hotspot() to
|
||||||
|
position the dialog under the mouse pointer prior to
|
||||||
|
showing it.
|
||||||
- Added a configure check for *BSD - use -pthread option
|
- Added a configure check for *BSD - use -pthread option
|
||||||
instead of -lpthread.
|
instead of -lpthread.
|
||||||
- Fl_Text_Display could get in an infinite loop when
|
- Fl_Text_Display could get in an infinite loop when
|
||||||
|
|||||||
@@ -209,7 +209,8 @@ const char * Fl_File_Chooser::label() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Fl_File_Chooser::show() {
|
void Fl_File_Chooser::show() {
|
||||||
window->show();
|
window->hotspot(fileList);
|
||||||
|
window->show();
|
||||||
fileList->deselect();
|
fileList->deselect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -150,15 +150,16 @@ rescan();} {}
|
|||||||
}
|
}
|
||||||
decl {void rescan();} {public
|
decl {void rescan();} {public
|
||||||
}
|
}
|
||||||
Function {show()} {return_type void
|
Function {show()} {open return_type void
|
||||||
} {
|
} {
|
||||||
code {window->show();
|
code {window->hotspot(fileList);
|
||||||
fileList->deselect();} {}
|
window->show();
|
||||||
|
fileList->deselect();} {selected
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Function {shown()} {return_type int
|
Function {shown()} {return_type int
|
||||||
} {
|
} {
|
||||||
code {return window->shown();} {selected
|
code {return window->shown();} {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Function {textcolor(Fl_Color c)} {return_type void
|
Function {textcolor(Fl_Color c)} {return_type void
|
||||||
} {
|
} {
|
||||||
|
|||||||
Reference in New Issue
Block a user