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:
parent
a5c9bdac5d
commit
0542106cc2
3
CHANGES
3
CHANGES
@ -1,5 +1,8 @@
|
||||
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
|
||||
instead of -lpthread.
|
||||
- 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() {
|
||||
window->show();
|
||||
window->hotspot(fileList);
|
||||
window->show();
|
||||
fileList->deselect();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
} {
|
||||
|
Loading…
Reference in New Issue
Block a user