gtk3: filch a fix for scrollbars w/o buttons from gtk2 code

that is b38ee8c8d5

Change-Id: Ib86d86616443cf48ba1d3ee0b6f96314b42dc972
This commit is contained in:
Ivan Timofeev 2012-08-02 21:14:57 +04:00
parent 81fd6b084b
commit 2cfe27125a

View file

@ -1049,6 +1049,10 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart
(nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ) )
{
aEditRect = NWGetScrollButtonRect( nPart, rControlRegion );
if (!aEditRect.GetWidth())
aEditRect.Right() = aEditRect.Left() + 1;
if (!aEditRect.GetHeight())
aEditRect.Bottom() = aEditRect.Top() + 1;
}
else if ( (nType==CTRL_SPINBOX) &&
((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ||