diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-05-05 20:07:41 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-05-05 20:25:36 +0400 |
commit | f1005e50e795a06b5504960a94e529b48e085a91 (patch) | |
tree | feace04b0fcd9e8366f798113ff5aab1570c7ec6 /vcl/source | |
parent | 33880a63fef2abf126163186d81c204d965031a6 (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')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 5 |
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() ); } |