diff options
author | Justin Luth <justin.luth@collabora.com> | 2019-10-21 05:57:57 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-21 10:04:10 +0200 |
commit | 1baab81b8112f45a300d061ff1e3e6f3025d21bd (patch) | |
tree | c85c175ebcab3808be4aeb415c91a4363db8eade | |
parent | 729989d485b0932bfac6997aa73e66364dc80cee (diff) |
fix unused function: SwapForRTL(widget) only if GTK3.22
Compiling on Ubuntu 16.04 produced this error:
vcl/unx/gtk3/gtk3gtkinst.cxx:1683:10: error:
‘bool {anonymous}::SwapForRTL(GtkWidget*)’
defined but not used [-Werror=unused-function]
bool SwapForRTL(GtkWidget* pWidget)
Change-Id: I5f6c52a263d560208898d8fa136643d1bc037717
Reviewed-on: https://gerrit.libreoffice.org/81193
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 0b93a5a3f270..e59e1391e368 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -1680,6 +1680,7 @@ static MouseEventModifiers ImplGetMouseMoveMode(sal_uInt16 nCode) namespace { +#if GTK_CHECK_VERSION(3,22,0) bool SwapForRTL(GtkWidget* pWidget) { GtkTextDirection eDir = gtk_widget_get_direction(pWidget); @@ -1689,6 +1690,7 @@ namespace return false; return AllSettings::GetLayoutRTL(); } +#endif } class GtkInstanceWidget : public virtual weld::Widget |