Kaydet (Commit) a0ce0dd5 authored tarafından Miklos Vajna's avatar Miklos Vajna

libreofficekit: fix RHEL5 build of tilebuffer

Change-Id: I27da86c774f0450c844e742563c4a8de3f23ad34
üst 0e947f33
...@@ -1335,6 +1335,7 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_post_key(GtkWidget* /*pWidget*/, GdkEvent ...@@ -1335,6 +1335,7 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_post_key(GtkWidget* /*pWidget*/, GdkEvent
SAL_DLLPUBLIC_EXPORT void lok_doc_view_get_visarea(LOKDocView* pThis, GdkRectangle* pArea) SAL_DLLPUBLIC_EXPORT void lok_doc_view_get_visarea(LOKDocView* pThis, GdkRectangle* pArea)
{ {
#if GTK_CHECK_VERSION(2,14,0) // we need gtk_adjustment_get_page_size()
float zoom = pThis->m_pImpl->m_fZoom; float zoom = pThis->m_pImpl->m_fZoom;
GtkAdjustment* pHAdjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(pThis)); GtkAdjustment* pHAdjustment = gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(pThis));
pArea->x = pixelToTwip(gtk_adjustment_get_value(pHAdjustment),zoom); pArea->x = pixelToTwip(gtk_adjustment_get_value(pHAdjustment),zoom);
...@@ -1342,6 +1343,7 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_get_visarea(LOKDocView* pThis, GdkRectang ...@@ -1342,6 +1343,7 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_get_visarea(LOKDocView* pThis, GdkRectang
GtkAdjustment* pVAdjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(pThis)); GtkAdjustment* pVAdjustment = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(pThis));
pArea->y = pixelToTwip(gtk_adjustment_get_value(pVAdjustment), zoom); pArea->y = pixelToTwip(gtk_adjustment_get_value(pVAdjustment), zoom);
pArea->height = pixelToTwip(gtk_adjustment_get_page_size(pVAdjustment), zoom); pArea->height = pixelToTwip(gtk_adjustment_get_page_size(pVAdjustment), zoom);
#endif
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
#include "tilebuffer.hxx" #include "tilebuffer.hxx"
#if !GLIB_CHECK_VERSION(2,40,0)
#define g_info(...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__)
#endif
/* ------------------ /* ------------------
Utility functions Utility functions
------------------ ------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment