diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp --- a/photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp Wed Apr 14 15:57:24 2010 +0300 +++ b/photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp Tue Apr 27 16:37:53 2010 +0300 @@ -26,13 +26,13 @@ #include #include #include // For VerifySelectionL() - +#include // for CGlxResourceUtilities #include #include #include // Logging macros #include #include //command ids - +#include // KDC_APP_RESOURCE_DIR #include // MGlxMediaList, CMPXCollectionPath #include @@ -45,7 +45,9 @@ #include "glxfetcher.hrh" const TInt KControlId = 1; - + +_LIT(KGlxGridviewResource, "glxgridviewdata.rsc"); + //----------------------------------------------------------------------------- // C++ default constructor. //----------------------------------------------------------------------------- @@ -88,6 +90,11 @@ CGlxFetcherDialog::~CGlxFetcherDialog() { TRACER("CGlxFetcherDialog::~CGlxFetcherDialog"); + if (iResourceOffset) + { + CCoeEnv::Static()->DeleteResourceFile(iResourceOffset); + } + if(iMMCNotifier) { delete iMMCNotifier; @@ -124,6 +131,15 @@ { iAvkonAppUi->CurrentFixedToolbar()->SetToolbarVisibility(EFalse); } + + // Load resource file for grid view empty text + TParse parse; + parse.Set(KGlxGridviewResource, &KDC_APP_RESOURCE_DIR, NULL); + TFileName resourceFile; + resourceFile.Append(parse.FullName()); + CGlxResourceUtilities::GetResourceFilenameL(resourceFile); + iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile); + // Get the Hitchcock environment. iUiUtility = CGlxUiUtility::UtilityL(); iEnv = iUiUtility->Env();