[Libreoffice-commits] core.git: libreofficekit/source

Miklos Vajna vmiklos at collabora.co.uk
Tue Apr 7 00:21:32 PDT 2015


 libreofficekit/source/gtk/lokdocview.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c3699a4c482bb5151d8fff7502332e3554caa314
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Apr 7 09:21:04 2015 +0200

    lokdocview: gtk_show_uri() requires Gtk 2.14
    
    Change-Id: I54454fec250b74238a1c064cc2136889e1a28972

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index b71355e..7430511 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -933,7 +933,9 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
     case LOK_CALLBACK_HYPERLINK_CLICKED:
     {
         GError* pError = NULL;
+#if GTK_CHECK_VERSION(2,14,0)
         gtk_show_uri(NULL, pCallback->m_aPayload.c_str(), GDK_CURRENT_TIME, &pError);
+#endif
     }
     break;
     default:


More information about the Libreoffice-commits mailing list