idlehomescreen/xmluirendering/uiengine/src/xnviewmanager.cpp
changeset 2 08c6ee43b396
parent 1 5315654608de
child 4 4d54b72983ae
--- a/idlehomescreen/xmluirendering/uiengine/src/xnviewmanager.cpp	Thu Jan 07 12:39:41 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnviewmanager.cpp	Mon Jan 18 20:10:36 2010 +0200
@@ -50,6 +50,7 @@
 #include "xncomponentnodeimpl.h"
 #include "xnnodepluginif.h"
 #include "xnoomsyshandler.h"
+#include "xnbackgroundmanager.h"
 
 // Constants
 _LIT8( KEmptyWidgetUid, "0x2001f47f" );
@@ -115,11 +116,11 @@
     node->SetImpl( impl );
     node->SetUiEngine( aUiEngine );
 
-    CXnDomStringPool& sp( aUiEngine.ODT()->DomDocument().StringPool() );
+    CXnDomStringPool* sp( aUiEngine.ODT()->DomDocument().StringPool() );
 
     CXnProperty* name = CXnProperty::NewL(
         XnPropertyNames::action::trigger::KName, aStringValue,
-        CXnDomPropertyValue::EString, sp );
+        CXnDomPropertyValue::EString, *sp );
 
     CleanupStack::PushL( name );
     node->SetPropertyL( name );
@@ -127,7 +128,7 @@
 
     CXnProperty* value = CXnProperty::NewL(
         XnPropertyNames::action::KValue,
-        KNullDesC8, CXnDomPropertyValue::EString, sp );
+        KNullDesC8, CXnDomPropertyValue::EString, *sp );
 
     CleanupStack::PushL( value );
     node->SetPropertyL( value );
@@ -871,6 +872,7 @@
     if ( next.Occupied() )
         {            
         iAppUiAdapter.ViewAdapter().ActivateContainerL( next );                
+        UpdateWallpaperL( current, next );
         }
     }
 
@@ -893,6 +895,7 @@
     if ( prev.Occupied() )
         {   
         iAppUiAdapter.ViewAdapter().ActivateContainerL( prev );
+        UpdateWallpaperL( current, prev );
         }
     }
 
@@ -1633,6 +1636,15 @@
     }
 
 // -----------------------------------------------------------------------------
+// CXnViewManager::UpdateWallpaperL
+// -----------------------------------------------------------------------------
+//
+void CXnViewManager::UpdateWallpaperL( CXnViewData& aCurrent, CXnViewData& aNew )
+    {
+    iEditor->BgManager().WallpaperChanged( aCurrent, aNew );
+    }
+
+// -----------------------------------------------------------------------------
 // CXnViewManager::ShowOperationFailedMessageL
 // -----------------------------------------------------------------------------
 //