[Libreoffice-commits] core.git: libreofficekit/qa

Stephan Bergmann sbergman at redhat.com
Thu Nov 19 23:56:32 PST 2015


 libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9a29e2f539fe3ca21229d6073455a736c64cc4e8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Nov 20 08:55:58 2015 +0100

    -Werror,-Wdeprecated-declarations
    
    Change-Id: I7c7d3dda02a3745128a5a125b4b6952e087cdcda

diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index 9c2692c..390f01b 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -19,6 +19,8 @@
 #include <boost/optional.hpp>
 #include <gdk/gdkkeysyms.h>
 
+#include <sal/types.h>
+
 #define LOK_USE_UNSTABLE_API
 #include <LibreOfficeKit/LibreOfficeKitGtk.h>
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
@@ -497,7 +499,9 @@ static void createModelAndView(const char* pLOPath, const char* pDocPath, const
         {
             GdkRGBA color;
             gdk_rgba_parse(&color, rArguments[i + 1].c_str());
+            SAL_WNODEPRECATED_DECLARATIONS_PUSH
             gtk_widget_override_background_color(gtk_widget_get_toplevel(pDocView), GTK_STATE_FLAG_NORMAL, &color);
+            SAL_WNODEPRECATED_DECLARATIONS_POP
         }
     }
     std::stringstream aStream;


More information about the Libreoffice-commits mailing list