application/src/PodcastSettingsView.cpp
branchnewlist
changeset 347 b8d687bb7ca1
parent 164 000f9fc147b2
child 348 bd7f3de17443
--- a/application/src/PodcastSettingsView.cpp	Sat Nov 13 12:34:20 2010 +0000
+++ b/application/src/PodcastSettingsView.cpp	Sat Nov 13 22:05:25 2010 +0000
@@ -24,6 +24,7 @@
 #include <aknnavide.h> 
 #include <podcast.rsg>
 #include "SettingsEngine.h"
+#include <akntitle.h>
 
 #include <akncommondialogsdynmem.h> 
 #include <pathinfo.h>
@@ -487,10 +488,13 @@
 	DP("Creating navipane");
 	iNaviPane =( CAknNavigationControlContainer * ) StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) );
 		
-	HBufC *titleBuffer = iEikonEnv->AllocReadResourceL(R_SETTINGS_TITLE);
-	iNaviDecorator  = iNaviPane->CreateNavigationLabelL(*titleBuffer);
-	delete titleBuffer;
-
+	CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
+			  ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
+		 
+	HBufC *titleBuffer = iEikonEnv->AllocReadResourceLC(R_SETTINGS_TITLE);
+	titlePane->SetTextL(*titleBuffer);
+	CleanupStack::PopAndDestroy(titleBuffer);
+	
 	DP("Updating listbox");
 	AppUi()->AddToStackL(*this, iListbox);
 	iListbox->UpdateSettingVisibility();
@@ -501,8 +505,9 @@
 	if(iNaviDecorator && iNaviPane)
 		{
 		iNaviPane->PushL(*iNaviDecorator);
-		}
+	}
 
+	((CPodcastAppUi*)AppUi())->SetTabsDimmed(ETrue);
 	DP("CPodcastSettingsView::DoActivateL END");
 }
 
@@ -522,6 +527,8 @@
 		delete iNaviDecorator;
 		iNaviDecorator = NULL;
 		}
+	
+	((CPodcastAppUi*)AppUi())->SetTabsDimmed(EFalse);
 	DP("CPodcastSettingsView::DoDeactivate END");
 	}