Blame SOURCES/0052-lokdocview-couple-for-missing-static_cast-GParamFlag.patch

135360
From c59de3973a3910b949528806dab6756f7ed92199 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Tue, 16 Jun 2015 11:34:36 +0200
135360
Subject: [PATCH 052/398] lokdocview: couple for missing
135360
 static_cast<GParamFlags>()
135360
135360
Change-Id: I038c05c0d081f52e4ac90688f73397565413632d
135360
(cherry picked from commit 9dcd2d119ab67bde9de588c42db3805525d5f06a)
135360
---
135360
 libreofficekit/source/gtk/lokdocview.cxx | 13 +++++--------
135360
 1 file changed, 5 insertions(+), 8 deletions(-)
135360
135360
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
135360
index 7031be9b6536..20b1aa6b837e 100644
135360
--- a/libreofficekit/source/gtk/lokdocview.cxx
135360
+++ b/libreofficekit/source/gtk/lokdocview.cxx
135360
@@ -519,10 +519,7 @@ callback (gpointer pData)
135360
     break;
135360
     case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED:
135360
     {
135360
-        g_info ("%d %d", priv->m_nDocumentWidthTwips, priv->m_nDocumentHeightTwips);
135360
-        g_info ("startin");
135360
         payloadToSize(pCallback->m_aPayload.c_str(), priv->m_nDocumentWidthTwips, priv->m_nDocumentHeightTwips);
135360
-        g_info ("%d %d", priv->m_nDocumentWidthTwips, priv->m_nDocumentHeightTwips);
135360
         gtk_widget_set_size_request(GTK_WIDGET(pDocView),
135360
                                     twipToPixel(priv->m_nDocumentWidthTwips, priv->m_fZoom),
135360
                                     twipToPixel(priv->m_nDocumentHeightTwips, priv->m_fZoom));
135360
@@ -1156,7 +1153,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                               "Document Path",
135360
                               "The URI of the document to open",
135360
                               0,
135360
-                              G_PARAM_READWRITE));
135360
+                              static_cast<GParamFlags>(G_PARAM_READWRITE)));
135360
 
135360
     /**
135360
      * LOKDocView:editable:
135360
@@ -1169,7 +1166,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                                "Editable",
135360
                                "Whether the content is in edit mode or not",
135360
                                FALSE,
135360
-                               G_PARAM_READWRITE));
135360
+                               static_cast<GParamFlags>(G_PARAM_READWRITE)));
135360
 
135360
     /**
135360
      * LOKDocView:load-progress:
135360
@@ -1214,7 +1211,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                                "Is Loading",
135360
                                "Whether the view is loading a document",
135360
                                FALSE,
135360
-                               G_PARAM_READABLE));
135360
+                               static_cast<GParamFlags>(G_PARAM_READABLE)));
135360
 
135360
     /**
135360
      * LOKDocView:doc-width:
135360
@@ -1227,7 +1224,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                             "Document Width",
135360
                             "Width of the document in twips",
135360
                             0, G_MAXLONG, 0,
135360
-                            G_PARAM_READWRITE));
135360
+                            static_cast<GParamFlags>(G_PARAM_READWRITE)));
135360
 
135360
     /**
135360
      * LOKDocView:doc-height:
135360
@@ -1240,7 +1237,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                             "Document Height",
135360
                             "Height of the document in twips",
135360
                             0, G_MAXLONG, 0,
135360
-                            G_PARAM_READWRITE));
135360
+                            static_cast<GParamFlags>(G_PARAM_READWRITE)));
135360
 
135360
     /**
135360
      * LOKDocView:can-zoom-in:
135360
-- 
135360
2.12.0
135360