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>
This commit is contained in:
Pranav Kant
2015-12-18 21:58:26 +05:30
committed by David Tardon
parent 81f31f5151
commit 398ef76d5d

View File

@@ -2485,6 +2485,8 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
nDocumentWidthPixels, nDocumentWidthPixels,
nDocumentHeightPixels); nDocumentHeightPixels);
g_object_notify_by_pspec(G_OBJECT(pDocView), properties[PROP_ZOOM]);
// Update the client's view size // Update the client's view size
GTask* task = g_task_new(pDocView, nullptr, nullptr, nullptr); GTask* task = g_task_new(pDocView, nullptr, nullptr, nullptr);
LOEvent* pLOEvent = new LOEvent(LOK_SET_CLIENT_ZOOM); LOEvent* pLOEvent = new LOEvent(LOK_SET_CLIENT_ZOOM);