diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 22:17:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:40 +0100 |
commit | dfbaba92e53a91d08bcde392d616f1fc48e220e2 (patch) | |
tree | 435f1f90918b582cef8268aad5d0d496c5df9538 /vcl | |
parent | 676659bc050f8a1353ca44fdd2dc19cea2fadd53 (diff) |
map gtk-close -> PushButton+SV_BUTTONTEXT_CLOSE
Change-Id: Ie8de8e23d72a8bad2c5edb097bd8b2c50a8ce4bf
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/builder.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 8593efa9feaa..49373ee4f39f 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -267,6 +267,12 @@ namespace pBtn->SetSymbol(SYMBOL_PREV); pWindow = pBtn; } + else if (sType.equalsL(RTL_CONSTASCII_STRINGPARAM("gtk-close"))) + { + PushButton *pBtn = new PushButton(pParent, nBits); + pBtn->SetText(VclResId(SV_BUTTONTEXT_CLOSE).toString()); + pWindow = pBtn; + } else fprintf(stderr, "unknown stock type %s\n", sType.getStr()); } |