libreofficekit/source/gtk/lokdocview.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit a2727e91a0beb6f8182f6448813a3d5c2eba1b8f Author: Andras Timar <[email protected]> Date: Wed May 25 12:13:52 2016 +0200 gtk_widget_get_window requires at least GTK 2.14 Change-Id: Ie795683b5b800d6b00ba54dcb3f5c5a71b39212f diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index ea94237..e54e3d8 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: _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
