diff -r 35368b604b28 -r 6727c5d0afc7 homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp --- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp Thu Sep 02 20:17:27 2010 +0300 +++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsmainwindow.cpp Fri Sep 17 08:27:54 2010 +0300 @@ -20,7 +20,7 @@ #include #include "hsmainwindow.h" #include "hsmenuview.h" - +#include "hsmenumodewrapper.h" /*! Constructor @@ -36,7 +36,7 @@ */ -HsMainWindow::HsMainWindow() +HsMainWindow::HsMainWindow(HsMenuModeWrapper* wrapper):mMenuMode(wrapper) { } @@ -56,9 +56,16 @@ HbMainWindow *const hbW( HbInstance::instance()->allMainWindows().value(0)); + if (mMenuMode && mMenuMode->getHsMenuMode() == Hs::AddHsMenuMode) { + view->setTitle(hbTrId("txt_applib_title_select_item")); + } else { + view->setTitle(hbTrId("txt_applib_title_applications")); + } + if (!hbW->views().contains(view)) { hbW->addView(view); } + bool animate = !hbW->isObscured(); - hbW->setCurrentView(view, animate); + hbW->setCurrentView(view, animate, Hb::ViewSwitchCachedFullScreen); }