summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-20 10:29:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-20 13:50:00 +0000
commit34b3f019253de169ba1cf97584b738d8bc284de0 (patch)
tree5efeeb7b3ab8fb3d6ba29e013dcf2b5d7db20f0e
parentcoverity#738800 Uninitialized scalar field (diff)
downloadcore-34b3f019253de169ba1cf97584b738d8bc284de0.tar.gz
core-34b3f019253de169ba1cf97584b738d8bc284de0.zip
implement loading GtkSeparatorToolItems
Change-Id: I8111b154d8358fd4dd667000ccbdd16be38a6dc5
-rw-r--r--vcl/source/window/builder.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 9c2fad8f9cb8..a8b26d9a836d 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1530,6 +1530,15 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
return NULL; // no widget to be created
}
}
+ else if (name == "GtkSeparatorToolItem")
+ {
+ ToolBox *pToolBox = dynamic_cast<ToolBox*>(pParent);
+ if (pToolBox)
+ {
+ pToolBox->InsertSeparator();
+ return NULL; // no widget to be created
+ }
+ }
else
{
sal_Int32 nDelim = name.indexOf('-');