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:
committed by
David Tardon
parent
81f31f5151
commit
398ef76d5d
@@ -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);
|
||||||
|
Reference in New Issue
Block a user