summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-26 14:08:45 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-26 14:09:26 +0100
commit64235bc9896911b4abfca47089ac1e71056afea7 (patch)
treecdf221c63a7d0a789f6b44bcc617ca7d6c4b6f81 /libreofficekit
parent1854a92340bb46d892d24265d28b9781309c1d6b (diff)
lokdocview: fix for missing gtk_table_get_size()
Change-Id: Ib3f9849c2f28375a7e8bcd6575a6c3da0860d4fb
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index 726456316cf6..372fa9d8935f 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)
{