Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a0ce0dd5
Kaydet (Commit)
a0ce0dd5
authored
Haz 08, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
libreofficekit: fix RHEL5 build of tilebuffer
Change-Id: I27da86c774f0450c844e742563c4a8de3f23ad34
üst
0e947f33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+2
-0
tilebuffer.cxx
libreofficekit/source/gtk/tilebuffer.cxx
+4
-0
No files found.
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
a0ce0dd5
...
@@ -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: */
libreofficekit/source/gtk/tilebuffer.cxx
Dosyayı görüntüle @
a0ce0dd5
...
@@ -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
------------------
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment