summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/gdi/salprn-gtk.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk/gdi/salprn-gtk.cxx')
-rw-r--r--vcl/unx/gtk/gdi/salprn-gtk.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index e51c552d619d..79a94327589d 100644
--- a/vcl/unx/gtk/gdi/salprn-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx
@@ -347,9 +347,15 @@ lcl_setHelpText(
const uno::Sequence<rtl::OUString>& i_rHelpTexts,
const sal_Int32 i_nIndex)
{
+#if GTK_CHECK_VERSION(2,12,0)
if (i_nIndex >= 0 && i_nIndex < i_rHelpTexts.getLength())
gtk_widget_set_tooltip_text(io_pWidget,
rtl::OUStringToOString(i_rHelpTexts.getConstArray()[i_nIndex], RTL_TEXTENCODING_UTF8).getStr());
+#else
+ (void)io_pWidget;
+ (void)i_rHelpTexts;
+ (void)i_nIndex;
+#endif
}