diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-16 12:23:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-16 12:23:35 +0000 |
| commit | c71738f3f47535492eadcf0e463282b681d2271f (patch) | |
| tree | 532acdca92e49ba82b2173d9def99c85bc238c72 /otk/messagedialog.cc | |
| parent | 010e12c42ac2a1a21886785f3c882c38eeebc66e (diff) | |
let you .focus() a messagedialog
Diffstat (limited to 'otk/messagedialog.cc')
| -rw-r--r-- | otk/messagedialog.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/otk/messagedialog.cc b/otk/messagedialog.cc index 21618981..c11a181e 100644 --- a/otk/messagedialog.cc +++ b/otk/messagedialog.cc @@ -112,6 +112,12 @@ const DialogButton& MessageDialog::run() return *_result; } +void MessageDialog::focus() +{ + if (visible()) + XSetInputFocus(**display, window(), None, CurrentTime); +} + void MessageDialog::show() { std::vector<DialogButton>::const_iterator it, end = _buttons.end(); |
