summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-01-04 23:43:42 +0100
committerJan Holesovsky <kendy@suse.cz>2013-01-04 23:44:04 +0100
commit3f3d0c52ae29b6ab6b2c10a5557714361aa76a26 (patch)
tree202a6d7e19e86a494844e9e2648ef83c06c4b93c
parentc223e5ff859171adab1597025b30ec2501fc5771 (diff)
Personas: Broadcast the information that the Persona has changed.
Change-Id: Ic563204c1a1a64d315e3e73dff30b6a6d05cfd87
-rw-r--r--cui/source/options/personalization.cxx8
-rw-r--r--vcl/source/window/dockingarea.cxx1
2 files changed, 9 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index ae8f60572f3d..14e071f2dd8e 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -16,6 +16,7 @@
#include <tools/urlobj.hxx>
#include <vcl/edit.hxx>
#include <vcl/msgbox.hxx>
+#include <vcl/svapp.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/system/SystemShellExecute.hpp>
@@ -161,6 +162,13 @@ sal_Bool SvxPersonalizationTabPage::FillItemSet( SfxItemSet & )
batch->commit();
+ if ( bModified )
+ {
+ // broadcast the change
+ DataChangedEvent aDataChanged( DATACHANGED_SETTINGS, NULL, SETTINGS_STYLE );
+ Application::NotifyAllWindows( aDataChanged );
+ }
+
return bModified;
}
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 7d97dd9c8fa2..8269c5e94985 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -103,6 +103,7 @@ void DockingAreaWindow::DataChanged( const DataChangedEvent& rDCEvt )
if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
ImplInitBackground( this );
+ Invalidate();
}
}