From 48e1d9c7afe5c2a39d9a08d7a38f7c8ff39d8c84 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Mon, 24 Jun 2013 22:55:55 +0400 Subject: fdo#66335: gtk: Revert hacks for RTL scrollbars returning false here in getNativeControlRegion results in a fallback to square buttons in vcl scrollbar code. But there is no problem in gtk+ backend in this case, let's fix the problem differently. This reverts commits 898a3e84807bccbb876e3f5583728f6d24e05e9a and e8e82bd2109b82ddd535cdac30303249c6b62942. Change-Id: I66fcdd1f27d471321852445e5881cee03baef7b1 --- vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index 176486e8ead2..c88bc6fe5056 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -1048,13 +1048,7 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType, rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1; if (!rNativeContentRegion.GetHeight()) rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1; - //fdo#63254 horizontal scrool bar isn't displayed in RTL tab - // with LTR UI in calc - returnVal =Application::GetSettings().GetLayoutRTL(); - - //See fdo#44582, Horizontal scrollbar in navigator window is broken - if ((nPart==PART_BUTTON_LEFT || nPart==PART_BUTTON_RIGHT) && Application::GetSettings().GetLayoutRTL()) - returnVal = false; + returnVal = sal_True; } if( (nType == CTRL_MENUBAR) && (nPart == PART_ENTIRE_CONTROL) ) { -- cgit v1.2.3