Back event changes
[apps/osp/Gallery.git] / src / GlMainFrame.cpp
index adc836b..8fdd34b 100644 (file)
@@ -52,6 +52,8 @@ MainFrame::OnInitializing(void)
        static FormFactory formFactory;
        static PanelFactory panelFactory;
 
+       AddFrameEventListener(*this);
+
        SceneManager* pSceneManager = SceneManager::GetInstance();
 
        r = pSceneManager->RegisterFormFactory(formFactory);
@@ -110,3 +112,15 @@ MainFrame::OnTerminating(void)
 
        return E_SUCCESS;
 }
+
+void
+MainFrame::OnFrameActivated(const Frame& source)
+{
+       AppLogDebug("OnFrameActivated");
+
+       GalleryApp* pGalleryApp = static_cast<GalleryApp*>(GalleryApp::GetInstance());
+       if (pGalleryApp != null)
+       {
+               pGalleryApp->SetFrameActivated(true);
+       }
+}