libreofficekit/source/gtk/lokdocview.c | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 64235bc9896911b4abfca47089ac1e71056afea7 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Mon Jan 26 14:08:45 2015 +0100 lokdocview: fix for missing gtk_table_get_size() Change-Id: Ib3f9849c2f28375a7e8bcd6575a6c3da0860d4fb diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index 7264563..372fa9d 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -163,10 +163,14 @@ void renderDocument(LOKDocView* pDocView, GdkRectangle* pPartial) // Same as nRows / nColumns, but from the previous renderDocument() call. guint nOldRows, nOldColumns; +#if GTK_CHECK_VERSION(2,22,0) gtk_table_get_size(GTK_TABLE(pDocView->pTable), &nOldRows, &nOldColumns); if (nOldRows != nRows || nOldColumns != nColumns) // Can't do partial rendering, document size changed. pPartial = NULL; +#else + pPartial = NULL; +#endif } if (!pPartial) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits