diff options
author | Pranav Kant <pranavk@libreoffice.org> | 2015-12-18 21:58:26 +0530 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-12-30 09:46:32 +0000 |
commit | 398ef76d5dc3ec1ed22fa1d9fd9151b61cce54e2 (patch) | |
tree | 6aa21dea471f6411c4a0882a6c40c94e51ba9d77 /libreofficekit/source | |
parent | 81f31f5151b54899ac5461c9c7c4021cdf31a9a6 (diff) |
tdf#96514: Emits a 'notify' signal when zoom changes
Change-Id: I5f55e4cce26096afcae3ad3711efa37757aada39
Reviewed-on: https://gerrit.libreoffice.org/20798
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'libreofficekit/source')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |