summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-05-05 20:07:41 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-05-05 20:25:36 +0400
commitf1005e50e795a06b5504960a94e529b48e085a91 (patch)
treefeace04b0fcd9e8366f798113ff5aab1570c7ec6 /vcl/source/window/toolbox.cxx
parent33880a63fef2abf126163186d81c204d965031a6 (diff)
gtk: fix drawing of separators in vertical toolbars
(regression from 0377b99b3f50a67e7845a3d728313e5a2ef36e73) * divide PART_SEPARATOR into PART_SEPARATOR_HORZ and PART_SEPARATOR_VERT * improve separator reduction: now the offset is (height*0.2) instead of 7. * rename: gVSeparator -> gSeparator * remove trailing whitespace Change-Id: I I If144509d7e061bf1b7901cd5418c4d7dbc3aa0d0
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index adc31ccef46c..e02e3acac3bc 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3239,11 +3239,12 @@ void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
bool bNativeOk = false;
ImplToolItem* pItem = &mpData->m_aItems[nPos];
- if( IsNativeControlSupported( CTRL_TOOLBAR, PART_SEPARATOR ) )
+ ControlPart nPart = IsHorizontal() ? PART_SEPARATOR_VERT : PART_SEPARATOR_HORZ;
+ if( IsNativeControlSupported( CTRL_TOOLBAR, nPart ) )
{
ImplControlValue aControlValue;
ControlState nState = 0;
- bNativeOk = DrawNativeControl( CTRL_TOOLBAR, PART_SEPARATOR,
+ bNativeOk = DrawNativeControl( CTRL_TOOLBAR, nPart,
rRect, nState, aControlValue, rtl::OUString() );
}