summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-28 20:09:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-28 20:09:26 +0000
commit6bfc84d14c056818345320b2918963a39cceafba (patch)
treeb02d15ec04ae9c27afc907dacd598a372a1e5734 /vcl/unx
parent60e7472b9dcaffb8ca04f9dba7ee04d7a3e7513c (diff)
get vcl building on RHEL-5
Change-Id: I01dc490d09fbe4bd0cce34b7e93afd36dd517f25
Diffstat (limited to 'vcl/unx')
-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
}