135360
From 466c0c035a0d03c76c82ad360b350f887c221912 Mon Sep 17 00:00:00 2001
135360
From: Pranav Kant <pranavk@libreoffice.org>
135360
Date: Thu, 17 Dec 2015 20:35:23 +0530
135360
Subject: [PATCH 375/398] lokdocview: Use GLib basic types
135360
135360
Change-Id: I07add7b9dcb1dc53d7ed61ff71545489de3be155
135360
Reviewed-on: https://gerrit.libreoffice.org/20778
135360
Reviewed-by: David Tardon <dtardon@redhat.com>
135360
Tested-by: David Tardon <dtardon@redhat.com>
135360
(cherry picked from commit b902432b431d01634c1f56e4758ec236a999650d)
135360
Reviewed-on: https://gerrit.libreoffice.org/21265
135360
Tested-by: Jenkins <ci@libreoffice.org>
135360
Reviewed-by: Pranav Kant <pranavk@gnome.org>
135360
(cherry picked from commit 0886f49224064a259ed6615961f420ab7b6fc3ef)
135360
---
135360
 include/LibreOfficeKit/LibreOfficeKitGtk.h | 12 ++++++------
135360
 libreofficekit/source/gtk/lokdocview.cxx   | 12 ++++++------
135360
 2 files changed, 12 insertions(+), 12 deletions(-)
135360
135360
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
index 903a74256ffa..c3cba8fe3417 100644
135360
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
@@ -118,19 +118,19 @@ void                           lok_doc_view_set_zoom               (LOKDocView*
135360
  *
135360
  * Returns: The current zoom factor value in float for pDocView
135360
  */
135360
-float                          lok_doc_view_get_zoom               (LOKDocView* pDocView);
135360
+gfloat                         lok_doc_view_get_zoom               (LOKDocView* pDocView);
135360
 
135360
 /**
135360
  * lok_doc_view_get_parts:
135360
  * @pDocView: The #LOKDocView instance
135360
  */
135360
-int                            lok_doc_view_get_parts              (LOKDocView* pDocView);
135360
+gint                           lok_doc_view_get_parts              (LOKDocView* pDocView);
135360
 
135360
 /**
135360
  * lok_doc_view_get_part:
135360
  * @pDocView: The #LOKDocView instance
135360
  */
135360
-int                            lok_doc_view_get_part               (LOKDocView* pDocView);
135360
+gint                           lok_doc_view_get_part               (LOKDocView* pDocView);
135360
 
135360
 /**
135360
  * lok_doc_view_set_part:
135360
@@ -145,7 +145,7 @@ void                           lok_doc_view_set_part               (LOKDocView*
135360
  * @pDocView: The #LOKDocView instance
135360
  * @nPart:
135360
  */
135360
-char*                          lok_doc_view_get_part_name          (LOKDocView* pDocView,
135360
+gchar*                         lok_doc_view_get_part_name          (LOKDocView* pDocView,
135360
                                                                     int nPart);
135360
 
135360
 /**
135360
@@ -272,7 +272,7 @@ gboolean                        lok_doc_view_paste                 (LOKDocView*
135360
  *
135360
  * Returns: The corresponding value in twips
135360
  */
135360
-float                          lok_doc_view_pixel_to_twip          (LOKDocView* pDocView,
135360
+gfloat                         lok_doc_view_pixel_to_twip          (LOKDocView* pDocView,
135360
                                                                     float fInput);
135360
 
135360
 /**
135360
@@ -284,7 +284,7 @@ float                          lok_doc_view_pixel_to_twip          (LOKDocView*
135360
  *
135360
  * Returns: The corresponding value in pixels
135360
  */
135360
-float                          lok_doc_view_twip_to_pixel          (LOKDocView* pDocView,
135360
+gfloat                         lok_doc_view_twip_to_pixel          (LOKDocView* pDocView,
135360
                                                                     float fInput);
135360
 
135360
 G_END_DECLS
135360
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
135360
index ccc45657626b..9d7f0740595e 100644
135360
--- a/libreofficekit/source/gtk/lokdocview.cxx
135360
+++ b/libreofficekit/source/gtk/lokdocview.cxx
135360
@@ -2507,14 +2507,14 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
135360
     g_object_unref(task);
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT float
135360
+SAL_DLLPUBLIC_EXPORT gfloat
135360
 lok_doc_view_get_zoom (LOKDocView* pDocView)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
     return priv->m_fZoom;
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT int
135360
+SAL_DLLPUBLIC_EXPORT gint
135360
 lok_doc_view_get_parts (LOKDocView* pDocView)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
@@ -2522,7 +2522,7 @@ lok_doc_view_get_parts (LOKDocView* pDocView)
135360
     return priv->m_pDocument->pClass->getParts( priv->m_pDocument );
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT int
135360
+SAL_DLLPUBLIC_EXPORT gint
135360
 lok_doc_view_get_part (LOKDocView* pDocView)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
@@ -2550,7 +2550,7 @@ lok_doc_view_set_part (LOKDocView* pDocView, int nPart)
135360
     g_object_unref(task);
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT char*
135360
+SAL_DLLPUBLIC_EXPORT gchar*
135360
 lok_doc_view_get_part_name (LOKDocView* pDocView, int nPart)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
@@ -2718,14 +2718,14 @@ lok_doc_view_paste (LOKDocView* pDocView,
135360
     return ret;
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT float
135360
+SAL_DLLPUBLIC_EXPORT gfloat
135360
 lok_doc_view_pixel_to_twip (LOKDocView* pDocView, float fInput)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
     return pixelToTwip(fInput, priv->m_fZoom);
135360
 }
135360
 
135360
-SAL_DLLPUBLIC_EXPORT float
135360
+SAL_DLLPUBLIC_EXPORT gfloat
135360
 lok_doc_view_twip_to_pixel (LOKDocView* pDocView, float fInput)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
-- 
135360
2.12.0
135360