summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-04-13 14:46:23 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 08:12:38 +0000
commitd01890fe45903657422223783398db9611e0e498 (patch)
treef93722e89c9f6935b877422e74520761f1c7faf9 /vcl
parent0dbd5b7195669225bbe2aafb53aeed577394170e (diff)
Fix showing tooltips in RTL UI with GTK 3
Change-Id: I29c2c7988fb97e2472188a600a483e5f6ed12d80 Reviewed-on: https://gerrit.libreoffice.org/24057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 3170db3241e9..e21f9033611d 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;
}