diff -r 5315654608de -r 08c6ee43b396 idlehomescreen/xmluirendering/uiengine/src/xnwallpaperview.cpp --- a/idlehomescreen/xmluirendering/uiengine/src/xnwallpaperview.cpp Thu Jan 07 12:39:41 2010 +0200 +++ b/idlehomescreen/xmluirendering/uiengine/src/xnwallpaperview.cpp Mon Jan 18 20:10:36 2010 +0200 @@ -21,6 +21,7 @@ #include "xnwallpapercontainer.h" #include "xnuiengine.h" #include "xneditor.h" +#include "xnbackgroundmanager.h" // SYSTEM INCLUDE FILES #include @@ -93,7 +94,7 @@ // void CXnWallpaperView::DoActivateL( const TVwsViewId& aPrevViewId, - TUid aCustomMessageId, + TUid /*aCustomMessageId*/, const TDesC8& aCustomMessage ) { iAvkonAppUi->StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL ); @@ -124,19 +125,9 @@ // set wallpaper. if( files->MdcaCount() == 1 ) { - AknsWallpaperUtils::SetIdleWallpaper( - files->MdcaPoint( 0 ), - NULL ); - } - //set slideshow - else - { - AknsWallpaperUtils::SetSlidesetWallpaper( - *files, - NULL ); + iEngine.Editor()->BgManager().AddWallpaperL( files->MdcaPoint( 0 ) ); } } - CleanupStack::PopAndDestroy( files ); iAvkonAppUi->ActivateViewL( aPrevViewId );