diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-09 08:02:46 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-09 08:12:13 +0100 |
commit | e8fe1582372983c6e3ca5b9cbead097ed670f504 (patch) | |
tree | a2002594e6c88b0cf8aead282dec2e567c0d82b2 /libreofficekit | |
parent | c0a185ed1d535b49e20b6ed7ca52bacdb7a457aa (diff) |
lokdocview: fix Linux baseline build
Baseline is only used for releases, while lokdocview is a tool to
helpdevelopment for now, so don't bother with full compatiblity, just add
enough to not break the build.
Change-Id: I52e312d3c3ae80636448bf42d5f277184fb9ca7b
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index 03d644873a2f..a7cf3ec91f17 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -184,6 +184,7 @@ static gboolean lcl_handleTimeout(gpointer pData) static gboolean renderOverlay(GtkWidget* pWidget, GdkEventExpose* pEvent, gpointer pData) { +#if GTK_CHECK_VERSION(2,14,0) // we need gtk_widget_get_window() LOKDocView* pDocView = pData; cairo_t* pCairo; @@ -220,6 +221,7 @@ static gboolean renderOverlay(GtkWidget* pWidget, GdkEventExpose* pEvent, gpoint } cairo_destroy(pCairo); +#endif return FALSE; } @@ -390,6 +392,7 @@ static GList* lcl_payloadToRectangles(const char* pPayload) /// Invoked on the main thread if lok_docview_callback_worker() requests so. static gboolean lok_docview_callback(gpointer pData) { +#if GLIB_CHECK_VERSION(2,28,0) // we need g_list_free_full() LOKDocViewCallbackData* pCallback = pData; switch (pCallback->m_nType) @@ -427,6 +430,7 @@ static gboolean lok_docview_callback(gpointer pData) g_free(pCallback->m_pPayload); g_free(pCallback); +#endif return G_SOURCE_REMOVE; } |