summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-10-19 01:21:22 +0200
committerJan Holesovsky <kendy@suse.cz>2012-10-19 14:51:23 +0200
commitbfa21ce5fa08f2c634ccb6162914be55aef9f3c2 (patch)
tree1bece26f68eb93980cfec7addee123f297b90ce2 /vcl/unx
parent91e81cd4bd8917ee06cd4fc0f7a56979c72100d6 (diff)
fdo#44657 Remove hack that "simulates" a mirrored horizontal scrollbar.
We are able to paint mirrored scrolbars with the 'gen' plugin, so just fix the rendering of the scroolbar with the Gtk+ plugin. Change-Id: I5dbd13420c6290e165ed2f5827769979298abf37
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 945ae0b4d355..8c603ed187cf 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1794,6 +1794,7 @@ sal_Bool GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
{
unsigned int sliderHeight = slider_width + (trough_border * 2);
vShim = (pixmapRect.GetHeight() - sliderHeight) / 2;
+ bool bRTLSwap = button11BoundRect.Left() > button22BoundRect.Left();
scrollbarRect.Move( 0, vShim );
scrollbarRect.SetSize( Size( scrollbarRect.GetWidth(), sliderHeight ) );
@@ -1801,8 +1802,8 @@ sal_Bool GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
scrollbarWidget = GTK_SCROLLBAR( gWidgetData[m_nXScreen].gScrollHorizWidget );
scrollbarOrientation = GTK_ORIENTATION_HORIZONTAL;
scrollbarTag = scrollbarTagH;
- button1Type = GTK_ARROW_LEFT;
- button2Type = GTK_ARROW_RIGHT;
+ button1Type = bRTLSwap? GTK_ARROW_RIGHT: GTK_ARROW_LEFT;
+ button2Type = bRTLSwap? GTK_ARROW_LEFT: GTK_ARROW_RIGHT;
if ( has_backward )
{