vcl/unx/gtk3/gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4ba511f17e7ccbb52e3b83dea77ab4b27025d1e7
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 7 20:51:35 2025 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Fri Mar 7 22:53:20 2025 +0100
Related: tdf#165455 get tooltips working for RTL custom widgets under GTK
Change-Id: I0e011b4d8d72c5133297127381ffe5c86e81ec51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182643
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index eae4e3a5fc4c..b9cc8438b8f0 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -18699,6 +18699,8 @@ private:
gpointer widget)
{
GtkInstanceDrawingArea* pThis =
static_cast<GtkInstanceDrawingArea*>(widget);
+ if (pThis->SwapForRTL())
+ x = gtk_widget_get_allocated_width(pGtkWidget) - 1 - x;
tools::Rectangle aHelpArea(x, y);
OUString aTooltip = pThis->signal_query_tooltip(aHelpArea);
if (aTooltip.isEmpty())