vcl/source/window/builder.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit b3ee9827d9cc7fd560b3bc06b2e6b435c9225a7b Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Oct 8 17:51:37 2017 +0200 allow adding the ListControl through UI files Change-Id: Ie97b027860e02cf774dc71fae6599342b8a380c4 Reviewed-on: https://gerrit.libreoffice.org/43258 Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index abfce54a64dd..5d955f7e3c4a 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -36,6 +36,7 @@ #include <vcl/vclmedit.hxx> #include <vcl/settings.hxx> #include <vcl/slider.hxx> +#include <vcl/listctrl.hxx> #include <vcl/commandinfoprovider.hxx> #include <svdata.hxx> #include <bitmaps.hlst> @@ -1599,6 +1600,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & else xWindow = VclPtr<FloatingWindow>::Create(pParent, nBits|WB_MOVEABLE); } + else if (name == "GtkListBox") + { + WinBits nBits = extractDeferredBits(rMap); + xWindow = VclPtr<ListControl>::Create(pParent, nBits); + } else { #ifndef SAL_DLLPREFIX _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits