[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 23 08:01:00 UTC 2018
vcl/source/gdi/print.cxx | 1 +
vcl/source/outdev/font.cxx | 1 +
vcl/source/window/winproc.cxx | 1 +
3 files changed, 3 insertions(+)
New commits:
commit 6baa7ab095b44c599a0db253e5484f673878cabc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Apr 22 20:59:45 2018 +0100
call ImplCallEventListenersApplicationDataChanged in addition to AllWindows
so non-window entities can get to hear about them
Change-Id: I00016a432d8e76e39dbf6340b014acdf4498d091
Reviewed-on: https://gerrit.libreoffice.org/53298
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 67dd278e4bb4..8e068cbde877 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1718,6 +1718,7 @@ void Printer::updatePrinters()
if( pApp )
{
DataChangedEvent aDCEvt( DataChangedEventType::PRINTER );
+ Application::ImplCallEventListenersApplicationDataChanged(&aDCEvt);
Application::NotifyAllWindows( aDCEvt );
}
}
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 67fd6dcdf7ee..bd112469404d 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -677,6 +677,7 @@ void OutputDevice::EndFontSubstitution()
ImplUpdateAllFontData( false );
DataChangedEvent aDCEvt( DataChangedEventType::FONTSUBSTITUTION );
+ Application::ImplCallEventListenersApplicationDataChanged(&aDCEvt);
Application::NotifyAllWindows( aDCEvt );
pSVData->maGDIData.mbFontSubChanged = false;
}
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index b838f08f848b..21cb9e24f90b 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2125,6 +2125,7 @@ static void ImplHandleSalSettings( SalEvent nEvent )
if ( nType != DataChangedEventType::NONE )
{
DataChangedEvent aDCEvt( nType );
+ Application::ImplCallEventListenersApplicationDataChanged(&aDCEvt);
Application::NotifyAllWindows( aDCEvt );
}
}
More information about the Libreoffice-commits
mailing list