From 398ef76d5dc3ec1ed22fa1d9fd9151b61cce54e2 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Fri, 18 Dec 2015 21:58:26 +0530 Subject: [PATCH] tdf#96514: Emits a 'notify' signal when zoom changes Change-Id: I5f55e4cce26096afcae3ad3711efa37757aada39 Reviewed-on: https://gerrit.libreoffice.org/20798 Reviewed-by: David Tardon Tested-by: David Tardon --- libreofficekit/source/gtk/lokdocview.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 1915c5f2089d..168338d03d48 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -2485,6 +2485,8 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom) nDocumentWidthPixels, nDocumentHeightPixels); + g_object_notify_by_pspec(G_OBJECT(pDocView), properties[PROP_ZOOM]); + // Update the client's view size GTask* task = g_task_new(pDocView, nullptr, nullptr, nullptr); LOEvent* pLOEvent = new LOEvent(LOK_SET_CLIENT_ZOOM);