diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-21 16:04:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-21 16:22:23 +0000 |
commit | 7701b0cbb932f4d75d5c82b66d4fcca4230222ff (patch) | |
tree | 7970e0ade812fb397606f0776062f2a907d4df36 /vcl | |
parent | eb4c29f4d10ae4be0e6be15a4c7c8c5bfb1edcc3 (diff) |
add has-focus .ui support
Change-Id: Ifd95d9fa74f6cbba989c05aae2a225a85b78c9f1
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window2.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 2fa48aeb8239..4c39be227d0a 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1666,6 +1666,11 @@ bool Window::set_property(const OString &rKey, const OString &rValue) //https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages SAL_WARN_IF(toBool(rValue), "vcl.layout", "Use pango attributes instead of mark-up"); } + else if (rKey == "has-focus") + { + if (toBool(rValue)) + GrabFocus(); + } else { SAL_INFO("vcl.layout", "unhandled property: " << rKey.getStr()); |