include/LibreOfficeKit/LibreOfficeKitEnums.h |   10 +++++++++-
 libreofficekit/source/gtk/lokdocview.cxx     |    1 +
 2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 2480f572e05bc1c15696cb955187491778a6bded
Author:     Paris Oplopoios <paris.oplopo...@collabora.com>
AuthorDate: Wed Mar 29 13:47:06 2023 +0300
Commit:     Paris Oplopoios <parisop...@gmail.com>
CommitDate: Sat Apr 1 01:52:23 2023 +0200

    Add LoKit callback for application color change
    
    Change-Id: I9d0fe4ab878c9d3a4a6d842be5cd534b97bf77a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149822
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Paris Oplopoios <parisop...@gmail.com>

diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h 
b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index 6e02c92596f1..f57e00afa185 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -916,7 +916,13 @@ typedef enum
      * Payload is an opaque string that matches this set of states.
      * this will be emitted after creating a new view.
      */
-    LOK_CALLBACK_VIEW_RENDER_STATE = 60
+    LOK_CALLBACK_VIEW_RENDER_STATE = 60,
+
+    /**
+     * Informs the LibreOfficeKit client that the background color surrounding
+     * the document has changed.
+    */
+   LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR = 61
 }
 LibreOfficeKitCallbackType;
 
@@ -1067,6 +1073,8 @@ static inline const char* lokCallbackTypeToString(int 
nType)
         return "LOK_CALLBACK_EXPORT_FILE";
     case LOK_CALLBACK_VIEW_RENDER_STATE:
         return "LOK_CALLBACK_VIEW_RENDER_STATE";
+    case LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR:
+        return "LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR";
     }
 
     assert(!"Unknown LibreOfficeKitCallbackType type.");
diff --git a/libreofficekit/source/gtk/lokdocview.cxx 
b/libreofficekit/source/gtk/lokdocview.cxx
index 8fcbe9a404fc..76f94293956b 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1487,6 +1487,7 @@ callback (gpointer pData)
     case LOK_CALLBACK_MEDIA_SHAPE:
     case LOK_CALLBACK_EXPORT_FILE:
     case LOK_CALLBACK_VIEW_RENDER_STATE:
+    case LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR:
     {
         // TODO: Implement me
         break;

Reply via email to