summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-05-25 12:13:52 +0200
committerAndras Timar <andras.timar@collabora.com>2016-05-25 12:13:52 +0200
commita2727e91a0beb6f8182f6448813a3d5c2eba1b8f (patch)
treeb99c86b39866a0af83bf7f999ba00573f2991eec
parentbc304ac66e56e6040bb810cfd23efbc35235eccb (diff)
gtk_widget_get_window requires at least GTK 2.14
Change-Id: Ie795683b5b800d6b00ba54dcb3f5c5a71b39212f
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index ea9423757cb7..e54e3d8aab5d 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1044,7 +1044,9 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
// on my system at least this is not true and many cursors are unsupported.
// In this case pCursor = null, which results in the default cursor being set.
GdkCursor* pCursor = gdk_cursor_new_from_name(gtk_widget_get_display(GTK_WIDGET(pCallback->m_pDocView)), pCallback->m_aPayload.c_str());
+#if GTK_CHECK_VERSION(2,14,0)
gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(pCallback->m_pDocView)), pCursor);
+#endif
}
break;
case LOK_CALLBACK_GRAPHIC_SELECTION: