[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/unx
Khaled Hosny
khaledhosny at eglug.org
Tue Apr 19 08:12:59 UTC 2016
vcl/unx/gtk3/gtk3gtkframe.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit d01890fe45903657422223783398db9611e0e498
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Wed Apr 13 14:46:23 2016 +0200
Fix showing tooltips in RTL UI with GTK 3
Change-Id: I29c2c7988fb97e2472188a600a483e5f6ed12d80
Reviewed-on: https://gerrit.libreoffice.org/24057
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 3170db3..e21f903 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2452,6 +2452,8 @@ gboolean GtkSalFrame::signalTooltipQuery(GtkWidget*, gint /*x*/, gint /*y*/,
aHelpArea.y = pThis->m_aHelpArea.Top();
aHelpArea.width = pThis->m_aHelpArea.GetWidth();
aHelpArea.height = pThis->m_aHelpArea.GetHeight();
+ if (AllSettings::GetLayoutRTL())
+ aHelpArea.x = pThis->maGeometry.nWidth-aHelpArea.width-1-aHelpArea.x;
gtk_tooltip_set_tip_area(tooltip, &aHelpArea);
return true;
}
More information about the Libreoffice-commits
mailing list