vcl/unx/gtk3/gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 48c12deb6e5ece3412cee38bb29654a1a73eaf57
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 7 20:51:35 2025 +0000
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Mon Mar 10 01:48:58 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/+/182652
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 81f80062b8e2..3d7567384fd2 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -18674,6 +18674,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())