[Libreoffice-commits] .: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 28 12:09:47 PST 2012
vcl/unx/gtk/gdi/salprn-gtk.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 6bfc84d14c056818345320b2918963a39cceafba
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 28 20:09:05 2012 +0000
get vcl building on RHEL-5
Change-Id: I01dc490d09fbe4bd0cce34b7e93afd36dd517f25
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index e51c552..79a9432 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
}
More information about the Libreoffice-commits
mailing list