From 0542106cc247f5385388348cb4282b4018dfcc92 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 17 Dec 2001 18:40:44 +0000 Subject: 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 --- src/Fl_File_Chooser.fl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/Fl_File_Chooser.fl') diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index 215a81fc5..456e5af00 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -150,15 +150,16 @@ rescan();} {} } decl {void rescan();} {public } - Function {show()} {return_type void + Function {show()} {open return_type void } { - code {window->show(); -fileList->deselect();} {} + code {window->hotspot(fileList); +window->show(); +fileList->deselect();} {selected + } } Function {shown()} {return_type int } { - code {return window->shown();} {selected - } + code {return window->shown();} {} } Function {textcolor(Fl_Color c)} {return_type void } { -- cgit v1.2.3