vcl/unx/gtk3/gtk3gtkinst.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 60b3664b0781e97934ca8faa03414e72da1d785a Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue May 14 16:56:21 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed May 15 15:52:05 2019 +0200 use tool button label as default tooltip Change-Id: I67e1697a1621d1ff645eecb2f010041ce84448b8 Reviewed-on: https://gerrit.libreoffice.org/72318 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index d92c81c0c426..ce9b3ebb4392 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -9706,6 +9706,13 @@ private: gtk_widget_show(pImage); } } + + // if no tooltip reuse the label as default tooltip + if (!gtk_widget_get_tooltip_text(pWidget)) + { + if (const gchar* label = gtk_tool_button_get_label(pToolButton)) + gtk_widget_set_tooltip_text(pWidget, label); + } } //set helpids _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits